From 9278cce7d2755786a598cbc655c7df4440a2f68d 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) --- cloud/amazon/ec2_asg_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/amazon/ec2_asg_facts.py b/cloud/amazon/ec2_asg_facts.py index 631677f1381..857d0c20a0b 100644 --- a/cloud/amazon/ec2_asg_facts.py +++ b/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