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

ec2_vpc_vgw_facts: fix getting facts about gateways without tags (#34575)

This commit is contained in:
Sloane Hertel 2018-01-08 13:16:49 -05:00 committed by ansibot
parent 458cc38992
commit 34206a0402

View file

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