From 6d34ce3f2a6f4704ee21716b877a436876751e48 Mon Sep 17 00:00:00 2001 From: Rob Date: Fri, 16 Jun 2017 03:19:28 +1000 Subject: [PATCH] [cloud] elb_target_group_facts.pyFix tags being snaked (#25742) --- lib/ansible/modules/cloud/amazon/elb_target_group_facts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/elb_target_group_facts.py b/lib/ansible/modules/cloud/amazon/elb_target_group_facts.py index f27d90f0e2..e4f6e25bdf 100644 --- a/lib/ansible/modules/cloud/amazon/elb_target_group_facts.py +++ b/lib/ansible/modules/cloud/amazon/elb_target_group_facts.py @@ -233,11 +233,14 @@ def list_target_groups(connection, module): # Get the attributes and tags for each target group for target_group in target_groups['TargetGroups']: target_group.update(get_target_group_attributes(connection, module, target_group['TargetGroupArn'])) - target_group['tags'] = get_target_group_tags(connection, module, target_group['TargetGroupArn']) # Turn the boto3 result in to ansible_friendly_snaked_names snaked_target_groups = [camel_dict_to_snake_dict(target_group) for target_group in target_groups['TargetGroups']] + # Get tags for each target group + for snaked_target_group in snaked_target_groups: + snaked_target_group['tags'] = get_target_group_tags(connection, module, snaked_target_group['target_group_arn']) + module.exit_json(target_groups=snaked_target_groups)