summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Clarke <diana.joan.clarke@gmail.com>2016-11-28 16:31:31 -0500
committerDiana Clarke <diana.joan.clarke@gmail.com>2016-11-28 22:18:53 +0000
commitac2a769b1f89a31eb7af28470038aa3b39c12358 (patch)
treef323f42f5544ae63089b4a88b3747ad22b87f961
parentec385f2939248ca0aa406b733724bdd173f57e0e (diff)
downloadpython-novaclient-ac2a769b1f89a31eb7af28470038aa3b39c12358.tar.gz
Correct copy/paste errors in help
The keypair, hypervisor, and flavor CLIs all incorrectly say that they support a special -1 case for the 'limit' parameter. I suspect this was just copied from the servers help text by mistake. Change-Id: I57fb3444d54232f0718424c00c07a28b29473d19 Closes-Bug: #1645489 (cherry picked from commit 83106a4442c2cb2f2617576e2e5539b409130ed3)
-rw-r--r--novaclient/v2/shell.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py
index a823cd4a..aa4e05e0 100644
--- a/novaclient/v2/shell.py
+++ b/novaclient/v2/shell.py
@@ -858,10 +858,9 @@ def _print_flavor_list(flavors, show_extra_specs=False):
metavar='<limit>',
type=int,
default=None,
- help=_("Maximum number of flavors to display. If limit == -1, all flavors "
- "will be displayed. If limit is bigger than 'osapi_max_limit' "
- "option of Nova API, limit 'osapi_max_limit' will be used "
- "instead."))
+ help=_("Maximum number of flavors to display. If limit is bigger than "
+ "'osapi_max_limit' option of Nova API, limit 'osapi_max_limit' "
+ "will be used instead."))
def do_flavor_list(cs, args):
"""Print a list of available 'flavors' (sizes of servers)."""
if args.all:
@@ -3316,8 +3315,7 @@ def do_keypair_list(cs, args):
metavar='<limit>',
type=int,
default=None,
- help=_("Maximum number of keypairs to display. If limit == -1, all "
- "keypairs will be displayed. If limit is bigger than "
+ help=_("Maximum number of keypairs to display. If limit is bigger than "
"'osapi_max_limit' option of Nova API, limit 'osapi_max_limit' "
"will be used instead."))
def do_keypair_list(cs, args):
@@ -4221,8 +4219,7 @@ def do_hypervisor_list(cs, args):
metavar='<limit>',
type=int,
default=None,
- help=_("Maximum number of hypervisors to display. If limit == -1, all "
- "hypervisors will be displayed. If limit is bigger than "
+ help=_("Maximum number of hypervisors to display. If limit is bigger than "
"'osapi_max_limit' option of Nova API, limit 'osapi_max_limit' "
"will be used instead."))
def do_hypervisor_list(cs, args):