X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tosca2heat%2Ftosca-parser%2Ftoscaparser%2Felements%2Fcapabilitytype.py;fp=tosca2heat%2Ftosca-parser%2Ftoscaparser%2Felements%2Fcapabilitytype.py;h=23c5afc11223890374be9b210f61319fbbc4a815;hb=0e2c3b05b5d788635bba09c19487cf9fa23095ee;hp=5fa96615bb86c6b159544d04128d7d05eb6f1bba;hpb=dd361d8d9df7a69a4fc7c004db5b959440a024c2;p=parser.git diff --git a/tosca2heat/tosca-parser/toscaparser/elements/capabilitytype.py b/tosca2heat/tosca-parser/toscaparser/elements/capabilitytype.py index 5fa9661..23c5afc 100644 --- a/tosca2heat/tosca-parser/toscaparser/elements/capabilitytype.py +++ b/tosca2heat/tosca-parser/toscaparser/elements/capabilitytype.py @@ -25,7 +25,7 @@ class CapabilityTypeDef(StatefulEntityType): self.nodetype = ntype self.properties = None self.custom_def = custom_def - if self.PROPERTIES in self.defs: + if self.defs and self.PROPERTIES in self.defs: self.properties = self.defs[self.PROPERTIES] self.parent_capabilities = self._get_parent_capabilities(custom_def)