Use "display_name" in "nova-manage vm list".

Fixes bug 894807.

This patch changes the output of "nova-manage vm list" to use the
display_name for an instance instead of the hostname in the output.
This makes the output consistent with what you get with "nova list".

Change-Id: I3131c5aad8770481bac7731c06110a98b4cc2966
This commit is contained in:
Russell Bryant
2012-01-31 16:55:00 -05:00
parent cfe12af77b
commit b9fc7b2bc8

View File

@@ -969,7 +969,7 @@ class VmCommands(object):
for instance in instances:
print "%-10s %-15s %-10s %-10s %-26s %-9s %-9s %-9s" \
" %-10s %-10s %-10s %-5d" % (
instance['hostname'],
instance['display_name'],
instance['host'],
instance['instance_type'].name,
instance['vm_state'],