File tree 1 file changed +5
-4
lines changed
src/codeflare_sdk/common/kubernetes_cluster
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,15 @@ def login(self) -> str:
109
109
configuration .host = self .server
110
110
configuration .api_key ["authorization" ] = self .token
111
111
112
- api_client = client .ApiClient (configuration )
113
- if not self .skip_tls :
114
- _client_with_cert (api_client , self .ca_cert_path )
115
- else :
112
+ if self .skip_tls :
116
113
urllib3 .disable_warnings (urllib3 .exceptions .InsecureRequestWarning )
117
114
print ("Insecure request warnings have been disabled" )
118
115
configuration .verify_ssl = False
119
116
117
+ api_client = client .ApiClient (configuration )
118
+ if not self .skip_tls :
119
+ _client_with_cert (api_client , self .ca_cert_path )
120
+
120
121
client .AuthenticationApi (api_client ).get_api_group ()
121
122
config_path = None
122
123
return "Logged into %s" % self .server
You can’t perform that action at this time.
0 commit comments