Pass OS_ENDPOINT_TYPE from shell to client
Change-Id: I0e769b4e800b7e64df3d721c21d7a44f733e9f19
This commit is contained in:
parent
18b94f4659
commit
ca01ddc20b
@ -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,
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user