Change host list display value
This patch add disk_total in host list display, and delete os and labels in host list display. Whether the host is available can be determined by CPU, memory, and disk. OS and labels not high in the value available to the host. Use "host-show" get host detail message, The os and labels will display. Change-Id: I6bd47ebb84855485c60bf079cc6cd6efe483c814 Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
This commit is contained in:
parent
92bbd0ec1c
commit
ab281d7f3b
@ -65,7 +65,7 @@ class ListHost(command.Lister):
|
||||
opts['sort_dir'] = parsed_args.sort_dir
|
||||
opts = zun_utils.remove_null_parms(**opts)
|
||||
hosts = client.hosts.list(**opts)
|
||||
columns = ('uuid', 'hostname', 'mem_total', 'cpus', 'os', 'labels')
|
||||
columns = ('uuid', 'hostname', 'mem_total', 'cpus', 'disk_total')
|
||||
return (columns, (utils.get_item_properties(host, columns)
|
||||
for host in hosts))
|
||||
|
||||
|
@ -42,7 +42,7 @@ def do_host_list(cs, args):
|
||||
opts['sort_dir'] = args.sort_dir
|
||||
opts = zun_utils.remove_null_parms(**opts)
|
||||
hosts = cs.hosts.list(**opts)
|
||||
columns = ('uuid', 'hostname', 'mem_total', 'cpus', 'os', 'labels')
|
||||
columns = ('uuid', 'hostname', 'mem_total', 'cpus', 'disk_total')
|
||||
utils.print_list(hosts, columns,
|
||||
{'versions': zun_utils.print_list_field('versions')},
|
||||
sortby_index=None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user