cloudformation_facts: Fixes PhysicalResourceId KeyError(#55990)
Fixes: #38033
This commit is contained in:
committed by
Abhijeet Kasurde
parent
e7c9c9585e
commit
da047eec59
@ -256,7 +256,7 @@ class CloudFormationServiceManager:
|
||||
def to_dict(items, key, value):
|
||||
''' Transforms a list of items to a Key/Value dictionary '''
|
||||
if items:
|
||||
return dict(zip([i[key] for i in items], [i[value] for i in items]))
|
||||
return dict(zip([i.get(key) for i in items], [i.get(value) for i in items]))
|
||||
else:
|
||||
return dict()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user