nova-manage vm list fails looking 'instance_type'

The recent set of changes to remove the join on instance_types and get
data from instance_system_metadata missed out the use in
"nova-manage vm list"

fixes bug:  #1158352

Change-Id: I5b06a4fef34331abe40e7429b3abda47070bcbbc
This commit is contained in:
Phil Day
2013-03-21 15:43:55 +00:00
parent b8adf92205
commit fc218e2209

View File

@@ -604,10 +604,11 @@ class VmCommands(object):
context.get_admin_context(), host)
for instance in instances:
instance_type = instance_types.extract_instance_type(instance)
print ("%-10s %-15s %-10s %-10s %-26s %-9s %-9s %-9s"
" %-10s %-10s %-10s %-5d" % (instance['display_name'],
instance['host'],
instance['instance_type'].name,
instance_type['name'],
instance['vm_state'],
instance['launched_at'],
instance['image_ref'],