diff options
| author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-01-12 18:19:01 +0200 |
|---|---|---|
| committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-01-12 18:27:14 +0200 |
| commit | e637e9c6c8782bce0ae654f01cacf6d486460728 (patch) | |
| tree | 58e79369c5291717fed79a9027b7584a175bd3d4 /openstackclient/compute | |
| parent | 4b2355b3e3cdbdb4e1a395e313147decf6221bc4 (diff) | |
| download | python-openstackclient-e637e9c6c8782bce0ae654f01cacf6d486460728.tar.gz | |
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
Diffstat (limited to 'openstackclient/compute')
| -rw-r--r-- | openstackclient/compute/v2/flavor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/compute/v2/flavor.py b/openstackclient/compute/v2/flavor.py index e562cd40..7cd22ed7 100644 --- a/openstackclient/compute/v2/flavor.py +++ b/openstackclient/compute/v2/flavor.py @@ -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", |
