|
|
@ -299,7 +299,11 @@ def find_asgs(conn, module, name=None, tags=None):
|
|
|
|
module.fail_json(msg=e.message, **camel_dict_to_snake_dict(e.response))
|
|
|
|
module.fail_json(msg=e.message, **camel_dict_to_snake_dict(e.response))
|
|
|
|
|
|
|
|
|
|
|
|
matched_asgs = []
|
|
|
|
matched_asgs = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if name is not None:
|
|
|
|
|
|
|
|
# if the user didn't specify a name
|
|
|
|
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['AutoScalingGroupName'])
|
|
|
|
matched_name = name_prog.search(asg['AutoScalingGroupName'])
|
|
|
|