From ba63ccb880ca2b683a6bf879cb8397118c065a72 Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 17 May 2016 02:19:41 +1000 Subject: [PATCH] Handle case of both Key and key (#15468) --- lib/ansible/module_utils/ec2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ec2.py b/lib/ansible/module_utils/ec2.py index b0cf050c08..3b2714eb53 100644 --- a/lib/ansible/module_utils/ec2.py +++ b/lib/ansible/module_utils/ec2.py @@ -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