Fix ec2_asg_facts module when using name parameter (#2840) (#2841)

This commit is contained in:
EarlAbides 2016-09-03 03:23:09 -04:00 committed by René Moser
parent e81bbf9b8f
commit 9278cce7d2

View file

@ -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