diff options
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/elements')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/elements/entity_type.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/elements/entity_type.py b/tosca2heat/tosca-parser/toscaparser/elements/entity_type.py index 5947b1c..9b9787b 100644 --- a/tosca2heat/tosca-parser/toscaparser/elements/entity_type.py +++ b/tosca2heat/tosca-parser/toscaparser/elements/entity_type.py @@ -108,8 +108,9 @@ class EntityType(object): if isinstance(value, list): for p_value in parent_value: if isinstance(p_value, dict): - if p_value.keys()[0] not in [ - item.keys()[0] for item in value]: + if list(p_value.keys())[0] not in [ + list(item.keys())[0] for item in + value]: value.append(p_value) else: if p_value not in value: |