Adds tenancy state to returning json

pull/18777/head
Philip Misiowiec 10 years ago committed by Matt Clay
parent 6fc04862a4
commit f3abfa0f19

@ -601,6 +601,11 @@ def get_instance_info(inst):
except AttributeError: except AttributeError:
instance_info['ebs_optimized'] = False instance_info['ebs_optimized'] = False
try:
instance_info['tenancy'] = getattr(inst, 'placement_tenancy')
except AttributeError:
instance_info['tenancy'] = 'default'
return instance_info return instance_info
def boto_supports_associate_public_ip_address(ec2): def boto_supports_associate_public_ip_address(ec2):

Loading…
Cancel
Save