Don't display 'Created At' for service

This field doesn't provide too much information. Also, both nova
and cinder don't display this field so we remove it for consistency.

Change-Id: Ia7968359862615bb38f9d1abb3f4a981c1329700
This commit is contained in:
Hongbin Lu 2018-02-14 04:00:01 +00:00
parent 755f0a3508
commit e759493abc
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class ListService(command.Lister):
client = _get_client(self, parsed_args)
services = client.services.list()
columns = ('Id', 'Host', 'Binary', 'State', 'Disabled',
'Disabled Reason', 'Created At', 'Updated At')
'Disabled Reason', 'Updated At')
return (columns, (utils.get_item_properties(service, columns)
for service in services))

View File

@ -21,7 +21,7 @@ def do_service_list(cs, args):
"""Print a list of zun services."""
services = cs.services.list()
columns = ('Id', 'Host', 'Binary', 'State', 'Disabled',
'Disabled Reason', 'Created At', 'Updated At')
'Disabled Reason', 'Updated At')
utils.print_list(services, columns,
{'versions': zun_utils.print_list_field('versions')})