From 9e9e4e6f59f7d6a4e0fd8d96c4586d58a8f0059e Mon Sep 17 00:00:00 2001 From: sunyajing Date: Thu, 26 May 2016 16:52:54 +0800 Subject: [PATCH] fix endpoint show help endpoint show command can also work on service name or type or ID option Change-Id: I43c8df4bc093d4130cf33fd2520736ce9077dc82 --- doc/source/command-objects/endpoint.rst | 6 +++--- openstackclient/identity/v2_0/endpoint.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/source/command-objects/endpoint.rst b/doc/source/command-objects/endpoint.rst index 074f20a0b..9872a5873 100644 --- a/doc/source/command-objects/endpoint.rst +++ b/doc/source/command-objects/endpoint.rst @@ -188,9 +188,9 @@ Display endpoint details .. code:: bash os endpoint show - + .. _endpoint_show-endpoint: -.. describe:: +.. describe:: - Endpoint ID to display + Endpoint to display (endpoint ID, service ID, service name, service type) diff --git a/openstackclient/identity/v2_0/endpoint.py b/openstackclient/identity/v2_0/endpoint.py index e92f54127..eabf341dc 100644 --- a/openstackclient/identity/v2_0/endpoint.py +++ b/openstackclient/identity/v2_0/endpoint.py @@ -129,8 +129,9 @@ class ShowEndpoint(command.ShowOne): parser = super(ShowEndpoint, self).get_parser(prog_name) parser.add_argument( 'endpoint_or_service', - metavar='', - help=_('Endpoint ID to display'), + metavar='', + help=_('Endpoint to display (endpoint ID, service ID,' + ' service name, service type)'), ) return parser