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 so it doesn't fail when using templates instead of configurations (#53017)

This commit is contained in:
Daryl Banttari 2019-03-26 11:00:50 -05:00 committed by Sloane Hertel
parent 4035e1fd6b
commit 4351326850

View file

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