Merge "Disable syslog in heat-translator for functest integration"
[parser.git] / tosca2heat / tosca-parser / toscaparser / elements / statefulentitytype.py
index 2f221b3..28ee697 100644 (file)
@@ -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