Change the endpoint env varible

Currently the varible is MAGNUM_ENDPOINT_TYPE rather than
OS_ENDPOINT_TYPE. This should be changed to match the rest of Openstack.

Change-Id: Ifdbf37ff12858cf26678f53e1967fb005d55574d
Closes-Bug: 1535400
This commit is contained in:
Niall Bunting 2016-01-18 18:12:07 +00:00
parent 3570fee8be
commit 9738b96ca7

View File

@ -286,9 +286,9 @@ class OpenStackMagnumShell(object):
parser.add_argument('--endpoint-type',
metavar='<endpoint-type>',
default=cliutils.env(
'MAGNUM_ENDPOINT_TYPE',
'OS_ENDPOINT_TYPE',
default=DEFAULT_ENDPOINT_TYPE),
help='Defaults to env[MAGNUM_ENDPOINT_TYPE] or '
help='Defaults to env[OS_ENDPOINT_TYPE] or '
+ DEFAULT_ENDPOINT_TYPE + '.')
# NOTE(dtroyer): We can't add --endpoint_type here due to argparse
# thinking usage-list --end is ambiguous; but it