From 79034dda29fd821b37526400f760bcbac3bfeb97 Mon Sep 17 00:00:00 2001 From: xiewj Date: Mon, 4 Jul 2016 00:49:37 -0400 Subject: [PATCH] Fix prompt message for qos-bandwidth-limit-rule-create The option names in the error message should match the actual option names (--max-kbps and --max-burst-kbps). Change-Id: I97f57fb56030d032274270d73bdb66fddf0f58f9 Closes-Bug: #1597635 --- neutronclient/neutron/v2_0/qos/bandwidth_limit_rule.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neutronclient/neutron/v2_0/qos/bandwidth_limit_rule.py b/neutronclient/neutron/v2_0/qos/bandwidth_limit_rule.py index 1cb36cd8e..27e7b626a 100644 --- a/neutronclient/neutron/v2_0/qos/bandwidth_limit_rule.py +++ b/neutronclient/neutron/v2_0/qos/bandwidth_limit_rule.py @@ -27,18 +27,18 @@ BANDWIDTH_LIMIT_RULE_RESOURCE = 'bandwidth_limit_rule' def add_bandwidth_limit_arguments(parser): parser.add_argument( '--max-kbps', - help=_('max bandwidth in kbps.')) + help=_('Maximum bandwidth in kbps.')) parser.add_argument( '--max-burst-kbps', - help=_('max burst bandwidth in kbps.')) + help=_('Maximum burst bandwidth in kbps.')) def update_bandwidth_limit_args2body(parsed_args, body): max_kbps = parsed_args.max_kbps max_burst_kbps = parsed_args.max_burst_kbps if not (max_kbps or max_burst_kbps): - raise exceptions.CommandError(_("Must provide max_kbps" - " or max_burst_kbps option.")) + raise exceptions.CommandError(_("Must provide max-kbps" + " or max-burst-kbps option.")) neutronv20.update_dict(parsed_args, body, ['max_kbps', 'max_burst_kbps', 'tenant_id'])