add interface and url to endpoint list
endpoint list is not terribly useful without these details Change-Id: I65b0bdf7667d73ceaad5856171678cabcde003f3
This commit is contained in:
parent
64a33b0aa5
commit
3435f188a4
@ -114,23 +114,11 @@ class ListEndpoint(lister.Lister):
|
|||||||
|
|
||||||
log = logging.getLogger(__name__ + '.ListEndpoint')
|
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):
|
def take_action(self, parsed_args):
|
||||||
self.log.debug('take_action(%s)' % parsed_args)
|
self.log.debug('take_action(%s)' % parsed_args)
|
||||||
identity_client = self.app.client_manager.identity
|
identity_client = self.app.client_manager.identity
|
||||||
if parsed_args.long:
|
columns = ('ID', 'Region', 'Service Name', 'Service Type',
|
||||||
columns = ('ID', 'Region', 'Service Name', 'Service Type',
|
'Enabled', 'Interface', 'URL')
|
||||||
'Enabled', 'Interface', 'URL')
|
|
||||||
else:
|
|
||||||
columns = ('ID', 'Region', 'Service Name', 'Enabled')
|
|
||||||
data = identity_client.endpoints.list()
|
data = identity_client.endpoints.list()
|
||||||
|
|
||||||
for ep in data:
|
for ep in data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user