Tolerate missing classic_link_enabled attribute

pull/18777/head
Rob 9 years ago committed by Matt Clay
parent a873e9a3cb
commit 2b0fc33fd5

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

Loading…
Cancel
Save