From 34206a040245ab079e48f0c046bdd1911f2cdbd4 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Mon, 8 Jan 2018 13:16:49 -0500 Subject: [PATCH] ec2_vpc_vgw_facts: fix getting facts about gateways without tags (#34575) --- lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py index a6cf9313eb..182817996a 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw_facts.py @@ -110,7 +110,7 @@ def get_virtual_gateway_info(virtual_gateway): 'State': virtual_gateway['State'], 'Type': virtual_gateway['Type'], 'VpcAttachments': virtual_gateway['VpcAttachments'], - 'Tags': virtual_gateway['Tags']} + 'Tags': virtual_gateway.get('Tags', [])} return virtual_gateway_info