Fix flavor create help re swap size units

nova actually expects and uses swap size in MB, while in openstackclient
currently help states that swap must be specified in GB and passes this
value to nova without changes.

Fix the help string.

Change-Id: I95f46246c072961ce77f818d80d75e6a51f728d0
Closes-Bug: #1656018
This commit is contained in:
Pavlo Shchelokovskyy 2017-01-12 18:19:01 +02:00
parent 4b2355b3e3
commit e637e9c6c8
2 changed files with 4 additions and 4 deletions

View File

@ -42,9 +42,9 @@ Create new flavor
Ephemeral disk size in GB (default 0G)
.. option:: --swap <size-gb>
.. option:: --swap <size-mb>
Swap space size in GB (default 0G)
Swap space size in MB (default 0M)
.. option:: --vcpus <num-cpu>

View File

@ -89,9 +89,9 @@ class CreateFlavor(command.ShowOne):
parser.add_argument(
"--swap",
type=int,
metavar="<size-gb>",
metavar="<size-mb>",
default=0,
help=_("Swap space size in GB (default 0G)")
help=_("Swap space size in MB (default 0M)")
)
parser.add_argument(
"--vcpus",