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:
parent
cc61531a74
commit
ba63ccb880
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue