Skip to content

Commit

Permalink
Moved disable code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 authored and openshift-merge-robot committed Aug 30, 2023
1 parent b436225 commit 1677680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/codeflare_sdk/cluster/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ def login(self) -> str:
elif self.skip_tls == False:
configuration.ssl_ca_cert = self.ca_cert_path
else:
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
print("Insecure request warnings have been disabled")
configuration.verify_ssl = False

api_client = client.ApiClient(configuration)
client.AuthenticationApi(api_client).get_api_group()
config_path = None
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
return "Logged into %s" % self.server
except client.ApiException: # pragma: no cover
api_client = None
Expand Down

0 comments on commit 1677680

Please sign in to comment.