diff options
author | Phil Day <philip.day@hp.com> | 2013-03-21 15:43:55 +0000 |
---|---|---|
committer | Phil Day <philip.day@hp.com> | 2013-03-21 18:03:07 +0000 |
commit | b8f9815c5ab61466009c0447f54abc4c309e4e3f (patch) | |
tree | 9e84ee2d234f6c0406ada9a114948e2e2b396c75 | |
parent | 3489c0ab6f1c08d39f8a58ccbdbb8ae4f64b2e83 (diff) | |
download | nova-b8f9815c5ab61466009c0447f54abc4c309e4e3f.tar.gz nova-b8f9815c5ab61466009c0447f54abc4c309e4e3f.tar.xz nova-b8f9815c5ab61466009c0447f54abc4c309e4e3f.zip |
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
-rwxr-xr-x | bin/nova-manage | 3 |
1 files changed, 2 insertions, 1 deletions
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'], |