add ec2 instance tags and groups info

reviewable/pr18780/r1
Capi Etheriel 10 years ago
parent 095f8681db
commit 5854f53cdc

@ -590,7 +590,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:

Loading…
Cancel
Save