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

ec2_lc_find: Set default value for AssociatePublicIpAddress, since is missing when is false (#3417)

This commit is contained in:
Jose Armesto 2016-11-11 21:57:55 +01:00 committed by Matt Clay
parent 9814136d3e
commit 14fee8d5f7

View file

@ -184,7 +184,7 @@ def find_launch_configs(client, module):
'security_groups': lc['SecurityGroups'],
'kernel_id': lc['KernelId'],
'ram_disk_id': lc['RamdiskId'],
'associate_public_address': lc['AssociatePublicIpAddress'],
'associate_public_address': lc.get('AssociatePublicIpAddress', False),
}
results.append(data)