From 9d5164aceea3a922a3df1bdac1310a48ed50f3e9 Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Thu, 2 Oct 2014 19:24:37 +0900 Subject: [PATCH] Show 'state' and 'status' in hypervisor-list Currently hypervisor-list only shows 'ID' and 'Hypervisor hostname', but in fact nova server response also contains 'state' and 'status' attributes, it's better to show all the attributes. Change-Id: I97cd18a8451dc515c5fb19841f11d0e85bd0b484 Closes-Bug: #1376664 --- novaclient/v1_1/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novaclient/v1_1/shell.py b/novaclient/v1_1/shell.py index cca8b9b32..a33f85c19 100644 --- a/novaclient/v1_1/shell.py +++ b/novaclient/v1_1/shell.py @@ -3169,7 +3169,7 @@ def _find_hypervisor(cs, hypervisor): help=_('List hypervisors matching the given .')) def do_hypervisor_list(cs, args): """List hypervisors.""" - columns = ['ID', 'Hypervisor hostname'] + columns = ['ID', 'Hypervisor hostname', 'State', 'Status'] if args.matching: utils.print_list(cs.hypervisors.search(args.matching), columns) else: