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
This commit is contained in:
parent
6a199bd141
commit
c28ed25e3a
@ -575,13 +575,12 @@ class CreateServer(command.ShowOne):
|
||||
# NOTE(RuiChen): Add '\n' at the end of line to put each item in
|
||||
# the separated line, avoid the help message looks
|
||||
# messy, see _SmartHelpFormatter in cliff.
|
||||
# FIXME(mriedem): Technically <id> can be the name or ID.
|
||||
help=_('Create a block device on the server.\n'
|
||||
'Block device mapping in the format\n'
|
||||
'<dev-name>=<id>:<type>:<size(GB)>:<delete-on-terminate>\n'
|
||||
'<dev-name>: block device name, like: vdb, xvdc '
|
||||
'(required)\n'
|
||||
'<id>: UUID of the volume, volume snapshot or image '
|
||||
'<id>: Name or ID of the volume, volume snapshot or image '
|
||||
'(required)\n'
|
||||
'<type>: volume, snapshot or image; default: volume '
|
||||
'(optional)\n'
|
||||
|
Loading…
x
Reference in New Issue
Block a user