Code Review
/
parser.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Disable syslog in heat-translator for functest integration"
[parser.git]
/
tosca2heat
/
tosca-parser
/
toscaparser
/
elements
/
statefulentitytype.py
diff --git
a/tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py
b/tosca2heat/tosca-parser/toscaparser/elements/statefulentitytype.py
index
2f221b3
..
28ee697
100644
(file)
--- 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:
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
ExceptionCollector.appendException(
InvalidTypeError(what=entitytype))
self.type = entitytype