Skip to content

Commit 3435f18

Browse files
dolphTerryHowe
authored andcommitted
add interface and url to endpoint list
endpoint list is not terribly useful without these details Change-Id: I65b0bdf7667d73ceaad5856171678cabcde003f3
1 parent 64a33b0 commit 3435f18

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

‎openstackclient/identity/v3/endpoint.py‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,11 @@ class ListEndpoint(lister.Lister):
114114

115115
log = logging.getLogger(__name__ + '.ListEndpoint')
116116

117-
def get_parser(self, prog_name):
118-
parser = super(ListEndpoint, self).get_parser(prog_name)
119-
parser.add_argument(
120-
'--long',
121-
action='store_true',
122-
default=False,
123-
help='List additional fields in output')
124-
return parser
125-
126117
def take_action(self, parsed_args):
127118
self.log.debug('take_action(%s)' % parsed_args)
128119
identity_client = self.app.client_manager.identity
129-
if parsed_args.long:
130-
columns = ('ID', 'Region', 'Service Name', 'Service Type',
131-
'Enabled', 'Interface', 'URL')
132-
else:
133-
columns = ('ID', 'Region', 'Service Name', 'Enabled')
120+
columns = ('ID', 'Region', 'Service Name', 'Service Type',
121+
'Enabled', 'Interface', 'URL')
134122
data = identity_client.endpoints.list()
135123

136124
for ep in data:

0 commit comments

Comments
 (0)