From a33d87fb424455f05d6713993c9254c20f8f96a4 Mon Sep 17 00:00:00 2001 From: Nate Potter Date: Fri, 5 Aug 2016 18:33:56 +0000 Subject: [PATCH] Update --endpoint-type dest to os_endpoint_type Currently the dest of the deprecated --endpoint-type arg is 'endpoint_type'. However, the code only uses 'os_endpoint_type' so right now it isn't being used at all. This patch updates the dest to be 'os_endpoint_type' so that the variable can be assigned correctly. Change-Id: Ie8592d12bcf95e4ccff571e831440b18f5acfd40 Closes-bug: #1454436 --- cinderclient/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinderclient/shell.py b/cinderclient/shell.py index a2d12679b..1d8e7786f 100644 --- a/cinderclient/shell.py +++ b/cinderclient/shell.py @@ -182,10 +182,10 @@ class OpenStackCinderShell(object): help=argparse.SUPPRESS) parser.add_argument('--endpoint-type', metavar='', - dest='endpoint_type', + dest='os_endpoint_type', help=_('DEPRECATED! Use --os-endpoint-type.')) parser.add_argument('--endpoint_type', - dest='endpoint_type', + dest='os_endpoint_type', help=argparse.SUPPRESS) parser.add_argument('--os-volume-api-version',