Skip to content

Commit 1677680

Browse files
Bobbins228openshift-merge-robot
authored andcommitted
Moved disable code
1 parent b436225 commit 1677680

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/codeflare_sdk/cluster/auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,13 @@ def login(self) -> str:
109109
elif self.skip_tls == False:
110110
configuration.ssl_ca_cert = self.ca_cert_path
111111
else:
112+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
113+
print("Insecure request warnings have been disabled")
112114
configuration.verify_ssl = False
115+
113116
api_client = client.ApiClient(configuration)
114117
client.AuthenticationApi(api_client).get_api_group()
115118
config_path = None
116-
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
117119
return "Logged into %s" % self.server
118120
except client.ApiException: # pragma: no cover
119121
api_client = None

0 commit comments

Comments
 (0)