From e637e9c6c8782bce0ae654f01cacf6d486460728 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Thu, 12 Jan 2017 18:19:01 +0200 Subject: 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 --- openstackclient/compute/v2/flavor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openstackclient') 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="", + metavar="", default=0, - help=_("Swap space size in GB (default 0G)") + help=_("Swap space size in MB (default 0M)") ) parser.add_argument( "--vcpus", -- cgit v1.2.1