summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/topology_template.py
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-08-14 02:35:34 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2016-08-14 02:35:34 +0800
commitbfdb0cd484dbabda2488d16536612dfe6d818a18 (patch)
tree725d9eff3bfc23d753e9383ca8a46e0d9f12ac53 /tosca2heat/tosca-parser/toscaparser/topology_template.py
parent06da764fca304f4b695020f9941fbda52b986a75 (diff)
Change the name of Substitution_mappings to SubstitutionMappings
Change the name of Substitution_mappings to SubstitutionMappings consistent to other classes. JIRA:PARSER-85 Change-Id: I9b27783ccec3f515cfcd2eca9995f09426bbfadd Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/topology_template.py')
-rw-r--r--tosca2heat/tosca-parser/toscaparser/topology_template.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/topology_template.py b/tosca2heat/tosca-parser/toscaparser/topology_template.py
index 0407653..fe05979 100644
--- a/tosca2heat/tosca-parser/toscaparser/topology_template.py
+++ b/tosca2heat/tosca-parser/toscaparser/topology_template.py
@@ -22,7 +22,7 @@ from toscaparser.parameters import Input
from toscaparser.parameters import Output
from toscaparser.policy import Policy
from toscaparser.relationship_template import RelationshipTemplate
-from toscaparser.substitution_mappings import Substitution_mappings
+from toscaparser.substitution_mappings import SubstitutionMappings
from toscaparser.tpl_relationship_graph import ToscaGraph
from toscaparser.utils.gettextutils import _
@@ -111,12 +111,12 @@ class TopologyTemplate(object):
def _substitution_mappings(self):
tpl_substitution_mapping = self._tpl_substitution_mappings()
if tpl_substitution_mapping:
- return Substitution_mappings(tpl_substitution_mapping,
- self.nodetemplates,
- self.inputs,
- self.outputs,
- self.sub_mapped_node_template,
- self.custom_defs)
+ return SubstitutionMappings(tpl_substitution_mapping,
+ self.nodetemplates,
+ self.inputs,
+ self.outputs,
+ self.sub_mapped_node_template,
+ self.custom_defs)
def _policies(self):
policies = []
@@ -297,4 +297,4 @@ class TopologyTemplate(object):
def get_sub_mapping_node_type(cls, topology_tpl):
if topology_tpl and isinstance(topology_tpl, dict):
submap_tpl = topology_tpl.get(SUBSTITUION_MAPPINGS)
- return Substitution_mappings.get_node_type(submap_tpl)
+ return SubstitutionMappings.get_node_type(submap_tpl)