summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-08-01 14:15:32 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2019-08-09 16:44:39 +0000
commitc28ed25e3a6f2d9cf5fc349c544354a9d07aa957 (patch)
treedca4cf55bc6775aa83fddda142bc528bfd2b2ca6 /openstackclient
parent6a199bd14152889f18ad95919a4bee9c0c083d5d (diff)
downloadpython-openstackclient-c28ed25e3a6f2d9cf5fc349c544354a9d07aa957.tar.gz
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
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/compute/v2/server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py
index a0afa389..fee2b27d 100644
--- a/openstackclient/compute/v2/server.py
+++ b/openstackclient/compute/v2/server.py
@@ -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'