Skip to content

Commit ca76260

Browse files
committed
Trivial: Improve doc for "server create" command
The following options of "server create" command support searching by both name and ID. So add this info into doc. --image, --volume, --flavor, --security. Change-Id: I93b167da58144e5de6c9996009b7ea2449fb4cd8
1 parent 40459b2 commit ca76260

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

doc/source/command-objects/server.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,20 @@ Create a new server
7777
7878
.. option:: --image <image>
7979

80-
Create server from this image
80+
Create server from this image (name or ID)
8181

8282
.. option:: --volume <volume>
8383

84-
Create server from this volume
84+
Create server from this volume (name or ID)
8585

8686
.. option:: --flavor <flavor>
8787

88-
Create server with this flavor
88+
Create server with this flavor (name or ID)
8989

9090
.. option:: --security-group <security-group-name>
9191

92-
Security group to assign to this server (repeat for multiple groups)
92+
Security group to assign to this server (name or ID)
93+
(repeat for multiple groups)
9394

9495
.. option:: --key-name <key-name>
9596

openstackclient/compute/v2/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,25 +276,25 @@ def get_parser(self, prog_name):
276276
disk_group.add_argument(
277277
'--image',
278278
metavar='<image>',
279-
help=_('Create server from this image'),
279+
help=_('Create server from this image (name or ID)'),
280280
)
281281
disk_group.add_argument(
282282
'--volume',
283283
metavar='<volume>',
284-
help=_('Create server from this volume'),
284+
help=_('Create server from this volume (name or ID)'),
285285
)
286286
parser.add_argument(
287287
'--flavor',
288288
metavar='<flavor>',
289289
required=True,
290-
help=_('Create server with this flavor'),
290+
help=_('Create server with this flavor (name or ID)'),
291291
)
292292
parser.add_argument(
293293
'--security-group',
294294
metavar='<security-group-name>',
295295
action='append',
296296
default=[],
297-
help=_('Security group to assign to this server '
297+
help=_('Security group to assign to this server (name or ID) '
298298
'(repeat for multiple groups)'),
299299
)
300300
parser.add_argument(

0 commit comments

Comments
 (0)