From 14fee8d5f79b06c45e56d245c07b244b23933f17 Mon Sep 17 00:00:00 2001 From: Jose Armesto Date: Fri, 11 Nov 2016 21:57:55 +0100 Subject: [PATCH] ec2_lc_find: Set default value for AssociatePublicIpAddress, since is missing when is false (#3417) --- lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py b/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py index f18bdfb42b..e5463e4ce8 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py @@ -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)