From 3435f188a400b21891981c4024c26bcefc7be861 Mon Sep 17 00:00:00 2001 From: Dolph Mathews <dolph.mathews@gmail.com> Date: Wed, 19 Feb 2014 14:44:03 -0600 Subject: [PATCH] add interface and url to endpoint list endpoint list is not terribly useful without these details Change-Id: I65b0bdf7667d73ceaad5856171678cabcde003f3 --- openstackclient/identity/v3/endpoint.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/openstackclient/identity/v3/endpoint.py b/openstackclient/identity/v3/endpoint.py index e0b1f1a3cf..055f9fe2ee 100644 --- a/openstackclient/identity/v3/endpoint.py +++ b/openstackclient/identity/v3/endpoint.py @@ -114,23 +114,11 @@ class ListEndpoint(lister.Lister): log = logging.getLogger(__name__ + '.ListEndpoint') - def get_parser(self, prog_name): - parser = super(ListEndpoint, self).get_parser(prog_name) - parser.add_argument( - '--long', - action='store_true', - default=False, - help='List additional fields in output') - return parser - def take_action(self, parsed_args): self.log.debug('take_action(%s)' % parsed_args) identity_client = self.app.client_manager.identity - if parsed_args.long: - columns = ('ID', 'Region', 'Service Name', 'Service Type', - 'Enabled', 'Interface', 'URL') - else: - columns = ('ID', 'Region', 'Service Name', 'Enabled') + columns = ('ID', 'Region', 'Service Name', 'Service Type', + 'Enabled', 'Interface', 'URL') data = identity_client.endpoints.list() for ep in data: