File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ def __init__(
26
26
uri_or_host ,
27
27
port = None ,
28
28
path = None ,
29
- cafile = None ,
30
- cert_file = None ,
31
- key_file = None ,
32
29
ssl_options : SSLOptions = None ,
33
30
max_connections : int = 1 ,
34
31
retry_policy : Union [DatabricksRetryPolicy , int ] = 0 ,
@@ -51,14 +48,10 @@ def __init__(
51
48
self .scheme = parsed .scheme
52
49
assert self .scheme in ("http" , "https" )
53
50
if self .scheme == "https" :
54
- self .certfile = cert_file
55
- self .keyfile = key_file
56
- # TODO: Seems this context is never used anywhere - need to double-check
57
- self .context = (
58
- ssl .create_default_context (cafile = cafile )
59
- if (cafile and not ssl_options )
60
- else ssl_options .create_ssl_context ()
61
- )
51
+ # TODO: Not sure if those options are used anywhere - need to double-check
52
+ self .certfile = self ._ssl_options .tls_client_cert_file
53
+ self .keyfile = self ._ssl_options .tls_client_cert_key_file
54
+ self .context = self ._ssl_options .create_ssl_context ()
62
55
self .port = parsed .port
63
56
self .host = parsed .hostname
64
57
self .path = parsed .path
You can’t perform that action at this time.
0 commit comments