Pass OS_ENDPOINT_TYPE from shell to client

Change-Id: I0e769b4e800b7e64df3d721c21d7a44f733e9f19
This commit is contained in:
Graham Hayes 2015-10-19 18:51:37 +01:00 committed by Kiall Mac Innes
parent 18b94f4659
commit ca01ddc20b
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class Command(CliffCommand):
self.client = Client(
region_name=self.app.options.os_region_name,
service_type=self.app.options.os_service_type,
endpoint_type=self.app.options.os_endpoint_type,
session=self.app.session,
all_tenants=self.app.options.all_tenants,
edit_managed=self.app.options.edit_managed,

View File

@ -146,7 +146,8 @@ class DesignateShell(App):
'Defaults to env[OS_DNS_ENDPOINT].')
parser.add_argument('--os-endpoint-type',
default=env('OS_ENDPOINT_TYPE'),
default=env('OS_ENDPOINT_TYPE',
default='publicURL'),
help='Defaults to env[OS_ENDPOINT_TYPE].')
parser.add_argument('--os-service-type',