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:
parent
4b2355b3e3
commit
e637e9c6c8
@ -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>
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user