From 961c076e72fe0f3ec734be2b2be01ed61c05f27e Mon Sep 17 00:00:00 2001 From: EarlAbides Date: Sat, 3 Sep 2016 03:23:09 -0400 Subject: [PATCH] Fix ec2_asg_facts module when using name parameter (#2840) (#2841) --- lib/ansible/modules/extras/cloud/amazon/ec2_asg_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_asg_facts.py b/lib/ansible/modules/extras/cloud/amazon/ec2_asg_facts.py index 631677f138..857d0c20a0 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_asg_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_asg_facts.py @@ -302,7 +302,7 @@ def find_asgs(conn, module, name=None, tags=None): name_prog = re.compile(r'^' + name) for asg in asgs['AutoScalingGroups']: if name: - matched_name = name_prog.search(asg['auto_scaling_group_name']) + matched_name = name_prog.search(asg['AutoScalingGroupName']) else: matched_name = True