Add more details to service-list command
Change-Id: I7563cab42f6dacb32ad2036e053826417dda5014
This commit is contained in:
parent
8aba477826
commit
30108acd2c
@ -20,6 +20,7 @@ from zunclient.common import utils as zun_utils
|
||||
def do_service_list(cs, args):
|
||||
"""Print a list of zun services."""
|
||||
services = cs.services.list()
|
||||
columns = ('id', 'host', 'binary', 'state')
|
||||
columns = ('Id', 'Host', 'Binary', 'State', 'Disabled',
|
||||
'Disabled Reason', 'Created At', 'Updated At')
|
||||
utils.print_list(services, columns,
|
||||
{'versions': zun_utils.print_list_field('versions')})
|
||||
|
Loading…
Reference in New Issue
Block a user