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

pull/18777/head
EarlAbides 8 years ago committed by Matt Clay
parent f48791e8bc
commit 961c076e72

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

Loading…
Cancel
Save