summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloud/amazon/ec2_asg_facts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/amazon/ec2_asg_facts.py b/cloud/amazon/ec2_asg_facts.py
index 631677f1..857d0c20 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