diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2016-09-12 15:20:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-12 15:20:00 +0000 |
commit | 8df7697cc85f97d825e7e7ff5ea7146f91b5a7c9 (patch) | |
tree | 8506a69747e40ce1346a52e85a75e19bf9a61873 /tosca2heat/tosca-parser/toscaparser/tosca_template.py | |
parent | f59d4d244d9127e56dbc80c48c08f70514a10546 (diff) | |
parent | 44540b6c2b16637659099c65e31309fc7573ba7d (diff) |
Merge "Add keys validation testcase in substitution_mapping class"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tosca_template.py')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/tosca_template.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tosca_template.py b/tosca2heat/tosca-parser/toscaparser/tosca_template.py index 2e815fd..84d953c 100644 --- a/tosca2heat/tosca-parser/toscaparser/tosca_template.py +++ b/tosca2heat/tosca-parser/toscaparser/tosca_template.py @@ -233,7 +233,7 @@ class ToscaTemplate(object): path=fname, parsed_params=parsed_params, yaml_dict_tpl=tosca_tpl, sub_mapped_node_template=nodetemplate) - if nested_template.has_substitution_mappings(): + if nested_template._has_substitution_mappings(): # Record the nested templates in top level template self.nested_tosca_templates_with_topology.\ append(nested_template) @@ -329,7 +329,7 @@ class ToscaTemplate(object): return TopologyTemplate.get_sub_mapping_node_type( tosca_tpl.get(TOPOLOGY_TEMPLATE)) - def has_substitution_mappings(self): + def _has_substitution_mappings(self): """Return True if the template has valid substitution mappings.""" return self.topology_template is not None and \ self.topology_template.substitution_mappings is not None |