From b8f9815c5ab61466009c0447f54abc4c309e4e3f Mon Sep 17 00:00:00 2001 From: Phil Day Date: Thu, 21 Mar 2013 15:43:55 +0000 Subject: 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 --- bin/nova-manage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/nova-manage b/bin/nova-manage index 46a9f0497..f80660010 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -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'], -- cgit