Skip to content

Commit 9eb77ae

Browse files
author
sunyajing
committed
Fix help msg of identity endpoint
<service> argument of `endpoint create` command doesn't mean `new endpoint service`, but an existent service that the new endpoint attached to. Change-Id: I846fdb501bdea14499f42288186f375a3b2b5951
1 parent 0695d14 commit 9eb77ae

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

doc/source/command-objects/endpoint.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Create new endpoint
4040
.. _endpoint_create-endpoint:
4141
.. describe:: <service>
4242

43-
New endpoint service (name or ID)
43+
Service to be associated with new endpoint (name or ID)
4444

4545
*Identity version 3 only*
4646

@@ -68,7 +68,7 @@ Create new endpoint
6868

6969
.. describe:: <service>
7070

71-
New endpoint service (name or ID)
71+
Service to be associated with new endpoint(name or ID)
7272

7373
.. describe:: <interface>
7474

@@ -92,7 +92,7 @@ Delete endpoint
9292
.. _endpoint_delete-endpoint:
9393
.. describe:: <endpoint-id>
9494

95-
Endpoint ID to delete
95+
Endpoint to delete (ID only)
9696

9797
endpoint list
9898
-------------
@@ -110,7 +110,7 @@ List endpoints
110110
111111
.. option:: --service <service>
112112

113-
Filter by service
113+
Filter by service (name or ID)
114114

115115
*Identity version 3 only*
116116

@@ -177,7 +177,7 @@ Set endpoint properties
177177
.. _endpoint_set-endpoint:
178178
.. describe:: <endpoint-id>
179179

180-
Endpoint ID to modify
180+
Endpoint to modify (ID only)
181181

182182
endpoint show
183183
-------------

openstackclient/identity/v2_0/endpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_parser(self, prog_name):
3131
parser.add_argument(
3232
'service',
3333
metavar='<service>',
34-
help=_('New endpoint service (name or ID)'),
34+
help=_('Service to be associated with new endpoint (name or ID)'),
3535
)
3636
parser.add_argument(
3737
'--publicurl',
@@ -81,7 +81,7 @@ def get_parser(self, prog_name):
8181
parser.add_argument(
8282
'endpoint',
8383
metavar='<endpoint-id>',
84-
help=_('Endpoint ID to delete'),
84+
help=_('Endpoint to delete (ID only)'),
8585
)
8686
return parser
8787

openstackclient/identity/v3/endpoint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_parser(self, prog_name):
3939
parser.add_argument(
4040
'service',
4141
metavar='<service>',
42-
help=_('New endpoint service (name or ID)'),
42+
help=_('Service to be associated with new endpoint (name or ID)'),
4343
)
4444
parser.add_argument(
4545
'interface',
@@ -101,7 +101,7 @@ def get_parser(self, prog_name):
101101
parser.add_argument(
102102
'endpoint',
103103
metavar='<endpoint-id>',
104-
help=_('Endpoint ID to delete'),
104+
help=_('Endpoint to delete (ID only)'),
105105
)
106106
return parser
107107

@@ -120,7 +120,7 @@ def get_parser(self, prog_name):
120120
parser.add_argument(
121121
'--service',
122122
metavar='<service>',
123-
help=_('Filter by service'),
123+
help=_('Filter by service (name or ID)'),
124124
)
125125
parser.add_argument(
126126
'--interface',
@@ -168,7 +168,7 @@ def get_parser(self, prog_name):
168168
parser.add_argument(
169169
'endpoint',
170170
metavar='<endpoint-id>',
171-
help=_('Endpoint ID to modify'),
171+
help=_('Endpoint to modify (ID only)'),
172172
)
173173
parser.add_argument(
174174
'--region',

0 commit comments

Comments
 (0)