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)