1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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