Add more details to service-list command

Change-Id: I7563cab42f6dacb32ad2036e053826417dda5014
This commit is contained in:
Madhuri Kumari 2016-09-22 18:49:45 +05:30 committed by Madhuri Kumari
parent 8aba477826
commit 30108acd2c

View File

@ -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')})