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 Matt Clay
parent f48791e8bc
commit 961c076e72

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