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

reviewable/pr18780/r1
EarlAbides 8 years ago committed by René Moser
parent e81bbf9b8f
commit 9278cce7d2

@ -302,7 +302,7 @@ def find_asgs(conn, module, name=None, tags=None):
name_prog = re.compile(r'^' + name) name_prog = re.compile(r'^' + name)
for asg in asgs['AutoScalingGroups']: for asg in asgs['AutoScalingGroups']:
if name: if name:
matched_name = name_prog.search(asg['auto_scaling_group_name']) matched_name = name_prog.search(asg['AutoScalingGroupName'])
else: else:
matched_name = True matched_name = True

Loading…
Cancel
Save