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

Tolerate missing classic_link_enabled attribute

This commit is contained in:
Rob 2015-09-21 11:13:56 +10:00 committed by Matt Clay
parent a873e9a3cb
commit 2b0fc33fd5

View file

@ -64,9 +64,14 @@ except ImportError:
def get_vpc_info(vpc):
try:
classic_link = vpc.classic_link_enabled
except AttributeError:
classic_link = False
vpc_info = { 'id': vpc.id,
'instance_tenancy': vpc.instance_tenancy,
'classic_link_enabled': vpc.classic_link_enabled,
'classic_link_enabled': classic_link,
'dhcp_options_id': vpc.dhcp_options_id,
'state': vpc.state,
'is_default': vpc.is_default,