From e759493abcea96517e871f08b114a29976ae53f8 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Wed, 14 Feb 2018 04:00:01 +0000 Subject: [PATCH] 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 --- zunclient/osc/v1/services.py | 2 +- zunclient/v1/services_shell.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zunclient/osc/v1/services.py b/zunclient/osc/v1/services.py index 53cac4bb..b2406440 100644 --- a/zunclient/osc/v1/services.py +++ b/zunclient/osc/v1/services.py @@ -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)) diff --git a/zunclient/v1/services_shell.py b/zunclient/v1/services_shell.py index 44a261c9..b7cc3168 100644 --- a/zunclient/v1/services_shell.py +++ b/zunclient/v1/services_shell.py @@ -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')})