From c828216e2b02a9fcee3bb9a10fde2ec5ccd59026 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 22 Feb 2017 17:56:03 +0800 Subject: [PATCH] Fix "endpoint list" help message OSC support to filter OpenStack endpoints by service type, name and ID, but help message and document don't contain "type" for "--service" option of "endpoint list" command. Change-Id: I5c8bc28e037b4c6f96ec83525a319353f01f256a Closes-Bug: #1666841 --- doc/source/command-objects/endpoint.rst | 4 ++-- openstackclient/identity/v3/endpoint.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/command-objects/endpoint.rst b/doc/source/command-objects/endpoint.rst index d6eb362af5..b98055a1df 100644 --- a/doc/source/command-objects/endpoint.rst +++ b/doc/source/command-objects/endpoint.rst @@ -103,14 +103,14 @@ List endpoints .. code:: bash openstack endpoint list - [--service ] [--interface ] [--region ] [--long] .. option:: --service - Filter by service (name or ID) + Filter by service (type, name or ID) *Identity version 3 only* diff --git a/openstackclient/identity/v3/endpoint.py b/openstackclient/identity/v3/endpoint.py index 7bc5e6df74..15760a1724 100644 --- a/openstackclient/identity/v3/endpoint.py +++ b/openstackclient/identity/v3/endpoint.py @@ -139,7 +139,7 @@ class ListEndpoint(command.Lister): parser.add_argument( '--service', metavar='', - help=_('Filter by service (name or ID)'), + help=_('Filter by service (type, name or ID)'), ) parser.add_argument( '--interface',