Merge "Show 'state' and 'status' in hypervisor-list"
This commit is contained in:
commit
41de515682
|
@ -3169,7 +3169,7 @@ def _find_hypervisor(cs, hypervisor):
|
||||||
help=_('List hypervisors matching the given <hostname>.'))
|
help=_('List hypervisors matching the given <hostname>.'))
|
||||||
def do_hypervisor_list(cs, args):
|
def do_hypervisor_list(cs, args):
|
||||||
"""List hypervisors."""
|
"""List hypervisors."""
|
||||||
columns = ['ID', 'Hypervisor hostname']
|
columns = ['ID', 'Hypervisor hostname', 'State', 'Status']
|
||||||
if args.matching:
|
if args.matching:
|
||||||
utils.print_list(cs.hypervisors.search(args.matching), columns)
|
utils.print_list(cs.hypervisors.search(args.matching), columns)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue