Skip to content

Commit

Permalink
remove warning when skipping ssl verification
Browse files Browse the repository at this point in the history
  • Loading branch information
maxadamo authored and Kamilcuk committed Jun 30, 2024
1 parent 55b564a commit f643161
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nomad_tools/nomadlib/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import requests.adapters
import requests.auth
import websocket
import urllib3

from ..common_base import cached_property
from . import types
Expand All @@ -24,6 +25,9 @@
NOMAD_CLIENT_CERT = "NOMAD_CLIENT_CERT"
NOMAD_CLIENT_KEY = "NOMAD_CLIENT_KEY"

if NOMAD_SKIP_VERIFY in os.environ:
urllib3.disable_warnings()


def _default_session():
s = requests.Session()
Expand Down

0 comments on commit f643161

Please sign in to comment.