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
This commit is contained in:
Nate Potter
2016-08-05 18:33:56 +00:00
parent e30cc55942
commit a33d87fb42

View File

@@ -182,10 +182,10 @@ class OpenStackCinderShell(object):
help=argparse.SUPPRESS)
parser.add_argument('--endpoint-type',
metavar='<endpoint-type>',
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',