mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix ec2_asg_facts so it doesn't fail when using templates instead of configurations (#53017)
This commit is contained in:
parent
4035e1fd6b
commit
4351326850
1 changed files with 2 additions and 1 deletions
|
@ -363,7 +363,8 @@ def find_asgs(conn, module, name=None, tags=None):
|
|||
if matched_name and matched_tags:
|
||||
asg = camel_dict_to_snake_dict(asg)
|
||||
# compatibility with ec2_asg module
|
||||
asg['launch_config_name'] = asg['launch_configuration_name']
|
||||
if 'launch_configuration_name' in asg:
|
||||
asg['launch_config_name'] = asg['launch_configuration_name']
|
||||
# workaround for https://github.com/ansible/ansible/pull/25015
|
||||
if 'target_group_ar_ns' in asg:
|
||||
asg['target_group_arns'] = asg['target_group_ar_ns']
|
||||
|
|
Loading…
Reference in a new issue