1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Handle case of both Key and key (#15468)

This commit is contained in:
Rob 2016-05-17 02:19:41 +10:00 committed by Jonathan Davila
parent cc61531a74
commit ba63ccb880

View file

@ -364,7 +364,10 @@ def boto3_tag_list_to_ansible_dict(tags_list):
tags_dict = {}
for tag in tags_list:
tags_dict[tag['Key']] = tag['Value']
if 'key' in tag:
tags_dict[tag['key']] = tag['value']
elif 'Key' in tag:
tags_dict[tag['Key']] = tag['Value']
return tags_dict