diff --git a/src/rest/connector/libs/nxos/implementation.py b/src/rest/connector/libs/nxos/implementation.py index e1ccbfd..53b537e 100644 --- a/src/rest/connector/libs/nxos/implementation.py +++ b/src/rest/connector/libs/nxos/implementation.py @@ -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