From 7fa7b4321a0811f1544fb684e5c0fc71f43f06ae Mon Sep 17 00:00:00 2001 From: Mike Raineri Date: Wed, 7 Aug 2024 09:28:03 -0400 Subject: [PATCH 1/2] Removed clearing of username and password to allow for sessions to be re-established Signed-off-by: Mike Raineri --- src/redfish/rest/v1.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/redfish/rest/v1.py b/src/redfish/rest/v1.py index 6de6a94..db9d0ec 100644 --- a/src/redfish/rest/v1.py +++ b/src/redfish/rest/v1.py @@ -1015,9 +1015,6 @@ def login(self, username=None, password=None, auth=AuthMethod.SESSION): except: pass raise SessionCreationError('HTTP {}: Failed to created the session\n{}'.format(resp.status, error_str)) - else: - self.set_username(None) - self.set_password(None) else: pass From d9d291dc28c7f8fbc6fd46f5c5bcd28ccb63d8a4 Mon Sep 17 00:00:00 2001 From: Mike Raineri Date: Wed, 7 Aug 2024 09:46:20 -0400 Subject: [PATCH 2/2] Updating Python versions Signed-off-by: Mike Raineri --- .travis.yml | 6 +----- tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6772335..7fee39f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,13 +3,9 @@ language: python cache: - pip python: -- '3.5' -- '3.6' -- '3.7' - '3.8' - '3.9' -# workaround for https://travis-ci.community/t/add-python-3-10/12220/12 -- '3.10.1' +- '3.11' before_install: - pip install -U pip - pip install -U setuptools diff --git a/tox.ini b/tox.ini index 4216555..ba04787 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py35,py36,py37,py38,py39,py310 +envlist = py38,py39,py311 [testenv] usedevelop = True @@ -18,4 +18,4 @@ deps = flake8 commands = flake8 tests/ src/redfish/discovery [travis] -python = 3.7: py37 +python = 3.11: py311