toscaparser: Support deriving from capability types of no property
[parser.git] / tosca2heat / tosca-parser / toscaparser / elements / capabilitytype.py
index 23c5afc..c37aa9d 100644 (file)
@@ -35,7 +35,7 @@ class CapabilityTypeDef(StatefulEntityType):
         parent_properties = {}
         if self.parent_capabilities:
             for type, value in self.parent_capabilities.items():
-                parent_properties[type] = value.get('properties')
+                parent_properties[type] = value.get('properties', {})
         if self.properties:
             for prop, schema in self.properties.items():
                 properties.append(PropertyDef(prop, None, schema))