diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2016-08-14 02:35:34 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2016-08-14 02:35:34 +0800 |
commit | bfdb0cd484dbabda2488d16536612dfe6d818a18 (patch) | |
tree | 725d9eff3bfc23d753e9383ca8a46e0d9f12ac53 /tosca2heat/tosca-parser/toscaparser/substitution_mappings.py | |
parent | 06da764fca304f4b695020f9941fbda52b986a75 (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/substitution_mappings.py')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/substitution_mappings.py | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py b/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py index 7fdce24..83ff590 100644 --- a/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py +++ b/tosca2heat/tosca-parser/toscaparser/substitution_mappings.py @@ -16,22 +16,12 @@ from toscaparser.common.exception import ExceptionCollector from toscaparser.common.exception import InvalidNodeTypeError from toscaparser.common.exception import MissingRequiredFieldError from toscaparser.common.exception import UnknownFieldError -# from toscaparser.common.exception import ValidationError -# from toscaparser.utils.gettextutils import _ -# from toscaparser.utils import validateutils -# from toscaparser.nodetemplate import NodeTemplate -# from toscaparser.elements.nodetype import NodeType -# from toscaparser.parameters import Input -# from toscaparser.parameters import Output -# from toscaparser.groups import Group -# from toscaparser.policy import Policy - log = logging.getLogger('tosca') -class Substitution_mappings(object): - '''Substitution_mappings class declaration +class SubstitutionMappings(object): + '''SubstitutionMappings class declaration Substitution_mappings exports the topology template as an implementation of a Node type. @@ -111,7 +101,7 @@ class Substitution_mappings(object): for name in inputs_names: if name not in [input.name for input in self.inputs]: ExceptionCollector.appendException( - UnknownFieldError(what='Substitution_mappings', + UnknownFieldError(what='SubstitutionMappings', field=name)) def _validate_capabilities(self): |