(hotfix) fixed key accessing in hierarchical attr action discover method

This commit is contained in:
Jakub Trllo 2019-07-11 14:17:25 +02:00
parent 305771ae2b
commit 91bbf71218

View file

@ -33,7 +33,7 @@ class SyncHierarchicalAttrs(BaseAction):
''' Validation '''
for entity in entities:
if (
entity['context_type'].lower() in ('show', 'task') and
entity.get('context_type', '').lower() in ('show', 'task') and
entity.entity_type.lower() != 'task'
):
return True