add ec2 instance tags and groups info

This commit is contained in:
Capi Etheriel 2015-02-04 18:20:11 -02:00 committed by Matt Clay
parent 646657e325
commit 103caa2853

View file

@ -591,7 +591,9 @@ def get_instance_info(inst):
'root_device_type': inst.root_device_type,
'root_device_name': inst.root_device_name,
'state': inst.state,
'hypervisor': inst.hypervisor}
'hypervisor': inst.hypervisor,
'tags': inst.tags,
'groups': {group.id: group.name for group in inst.groups}}
try:
instance_info['virtualization_type'] = getattr(inst,'virtualization_type')
except AttributeError: