Respect endpoint, cacert and debug options

When troveclient is used as a plugin for osc, it does not respect
provided endpoint type or cert via osc. This might result in
CERTIFICATE_VERIFY_FAILED error with osc, but not with trove shell.

Change-Id: I3d34774e87fcf0fe8efb024d4e6ff80a4e3f49c6
This commit is contained in:
Dmitriy Rabotyagov 2021-03-30 14:49:19 +03:00
parent 8a3a26eb7d
commit 1d533778d7
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ def make_client(instance):
client = trove_client(
auth=instance.auth,
session=instance.session,
region_name=instance._region_name
region_name=instance._region_name,
endpoint_type=instance.interface,
cacert=instance.cert,
http_log_debug=instance._cli_options.debug
)
return client