File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/codeflare_sdk/cluster Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def __init__(
76
76
token : str ,
77
77
server : str ,
78
78
skip_tls : bool = False ,
79
- ca_cert_path : str = "/etc/pki/tls/certs/ca-bundle.crt" ,
79
+ ca_cert_path : str = None ,
80
80
):
81
81
"""
82
82
Initialize a TokenAuthentication object that requires a value for `token`, the API Token
@@ -101,7 +101,9 @@ def login(self) -> str:
101
101
configuration .api_key_prefix ["authorization" ] = "Bearer"
102
102
configuration .host = self .server
103
103
configuration .api_key ["authorization" ] = self .token
104
- if self .skip_tls == False :
104
+ if self .skip_tls == False and self .ca_cert_path == None :
105
+ configuration .verify_ssl = True
106
+ elif self .skip_tls == False :
105
107
configuration .ssl_ca_cert = self .ca_cert_path
106
108
else :
107
109
configuration .verify_ssl = False
You can’t perform that action at this time.
0 commit comments