diff options
author | julien zhang <zhang.jun3g@zte.com.cn> | 2017-09-10 14:40:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-10 14:40:24 +0000 |
commit | 7c96fb6cb02a5bb8f957f7129bf6149e07dfa8c2 (patch) | |
tree | 7e7d05f781ff6fef99836e8fa754980c55af918d /tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py | |
parent | 792dd7acf8ac48ccb6fc35d99e4099559a2c9e9c (diff) | |
parent | 0e2c3b05b5d788635bba09c19487cf9fa23095ee (diff) |
Merge "Fix StatefulEntityType when entitytype is not define"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py b/tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py index 2f221b3..28ee697 100644 --- a/tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py +++ b/tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py @@ -46,7 +46,8 @@ class StatefulEntityType(EntityType): elif custom_def and entitytype in list(custom_def.keys()): self.defs = custom_def[entitytype] else: - self.defs = None + # avoid errors if self.defs = none + self.defs = {} ExceptionCollector.appendException( InvalidTypeError(what=entitytype)) self.type = entitytype |