Skip to content

Commit 1d53377

Browse files
author
Dmitriy Rabotyagov
committed
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
1 parent 8a3a26e commit 1d53377

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

troveclient/osc/plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ def make_client(instance):
3535
client = trove_client(
3636
auth=instance.auth,
3737
session=instance.session,
38-
region_name=instance._region_name
38+
region_name=instance._region_name,
39+
endpoint_type=instance.interface,
40+
cacert=instance.cert,
41+
http_log_debug=instance._cli_options.debug
3942
)
4043

4144
return client

0 commit comments

Comments
 (0)