diff options
| author | Rui Chen <chenrui.momo@gmail.com> | 2017-02-22 17:56:03 +0800 |
|---|---|---|
| committer | Rui Chen <chenrui.momo@gmail.com> | 2017-02-22 17:56:03 +0800 |
| commit | c828216e2b02a9fcee3bb9a10fde2ec5ccd59026 (patch) | |
| tree | a3752531cfaf4265e4ab4fe8a285527acbc206a6 | |
| parent | 62938c02e077049e3e4ebb393045ba0fa783c72d (diff) | |
| download | python-openstackclient-c828216e2b02a9fcee3bb9a10fde2ec5ccd59026.tar.gz | |
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
| -rw-r--r-- | doc/source/command-objects/endpoint.rst | 4 | ||||
| -rw-r--r-- | 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 d6eb362a..b98055a1 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 <service] + [--service <service>] [--interface <interface>] [--region <region-id>] [--long] .. option:: --service <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 7bc5e6df..15760a17 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='<service>', - help=_('Filter by service (name or ID)'), + help=_('Filter by service (type, name or ID)'), ) parser.add_argument( '--interface', |
