Skip to content

Commit

Permalink
Set session wide SSL verification to False for NXOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHAN TIRPUDE committed Nov 26, 2024
1 parent b289e2d commit b840063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rest/connector/libs/nxos/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def connect(self, timeout=30, port=443, protocol='https', retries=3, retry_wait=
try:
# Connect to the device via requests
if protocol == 'https':
response = self.session.post(login_url, data=_data, timeout=timeout, verify=False)
self.session.verify = False
response = self.session.post(login_url, data=_data, timeout=timeout)
else:
response = self.session.post(login_url, data=_data, timeout=timeout)
break
Expand Down

0 comments on commit b840063

Please sign in to comment.