Skip to content

Commit c28ed25

Browse files
committed
Fix <id> description for --block-device-mapping
The <id> portion of a --block-device-mapping value can be the resource name or id since the code uses the appropriate type-specific find_resource utility to lookup the resource based on the value given. This change simply fixes the description of <id> to mention it's name or id rather than just "UUID". My guess is the description was originally copied from novaclient where id must be an id since name resolution does not happen in novaclient. Change-Id: I567f6f6efb3a3b6d387133d21aa81354b2d753bc
1 parent 6a199bd commit c28ed25

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,12 @@ def get_parser(self, prog_name):
575575
# NOTE(RuiChen): Add '\n' at the end of line to put each item in
576576
# the separated line, avoid the help message looks
577577
# messy, see _SmartHelpFormatter in cliff.
578-
# FIXME(mriedem): Technically <id> can be the name or ID.
579578
help=_('Create a block device on the server.\n'
580579
'Block device mapping in the format\n'
581580
'<dev-name>=<id>:<type>:<size(GB)>:<delete-on-terminate>\n'
582581
'<dev-name>: block device name, like: vdb, xvdc '
583582
'(required)\n'
584-
'<id>: UUID of the volume, volume snapshot or image '
583+
'<id>: Name or ID of the volume, volume snapshot or image '
585584
'(required)\n'
586585
'<type>: volume, snapshot or image; default: volume '
587586
'(optional)\n'

0 commit comments

Comments
 (0)