Skip to content

Commit e637e9c

Browse files
committed
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
1 parent 4b2355b commit e637e9c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/source/command-objects/flavor.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Create new flavor
4242

4343
Ephemeral disk size in GB (default 0G)
4444

45-
.. option:: --swap <size-gb>
45+
.. option:: --swap <size-mb>
4646

47-
Swap space size in GB (default 0G)
47+
Swap space size in MB (default 0M)
4848

4949
.. option:: --vcpus <num-cpu>
5050

openstackclient/compute/v2/flavor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def get_parser(self, prog_name):
8989
parser.add_argument(
9090
"--swap",
9191
type=int,
92-
metavar="<size-gb>",
92+
metavar="<size-mb>",
9393
default=0,
94-
help=_("Swap space size in GB (default 0G)")
94+
help=_("Swap space size in MB (default 0M)")
9595
)
9696
parser.add_argument(
9797
"--vcpus",

0 commit comments

Comments
 (0)