summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser
diff options
context:
space:
mode:
Diffstat (limited to 'tosca2heat/tosca-parser')
-rw-r--r--tosca2heat/tosca-parser/toscaparser/substitution_mappings.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py b/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py
index f644808..fe47ae4 100644
--- a/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py
+++ b/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py
@@ -31,7 +31,7 @@ class SubstitutionMappings(object):
implementation of a Node type.
'''
- SECTIONS = (NODE_TYPE, CAPABILITIES, REQUIREMENTS) = \
+ SECTIONS = (NODE_TYPE, REQUIREMENTS, CAPABILITIES) = \
('node_type', 'requirements', 'capabilities')
def __init__(self, sub_mapping_def, nodetemplates, inputs, outputs,
@@ -102,13 +102,14 @@ class SubstitutionMappings(object):
InvalidNodeTypeError(what=node_type_def))
def _validate_inputs(self):
- """validate the inputs of substitution mappings."""
-
- # The inputs in service template which provides substutition mappings
- # must be in properties of node template which is mapped or provide
- # defualt value. Currently the input.name is not restrict to be the
- # same as property name in specification, but they should be equal
- # for current implementation.
+ """validate the inputs of substitution mappings.
+
+ The inputs in service template which provides substutition mappings
+ must be in properties of node template which is mapped or provide
+ defualt value. Currently the input.name is not restrict to be the
+ same as property name in specification, but they should be equal
+ for current implementation.
+ """
# Must provide parameters for required properties of node_type
# This checking is internal(inside SubstitutionMappings)