Skip to content

Commit

Permalink
Merge pull request #137 from CiscoTestAutomation/stirpude_set_session…
Browse files Browse the repository at this point in the history
…_verify_to_false

NXOS: Set session wide SSL verification to False for HTTPS URLs
  • Loading branch information
ThomasJRyan authored Dec 16, 2024
2 parents 7b72c47 + 3a5f627 commit 4475c68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------
* connector
* NXOS
* Set session wide SSL verification to False for HTTPS URLs
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 4475c68

Please sign in to comment.