Skip to content

Commit

Permalink
Merge pull request #161 from DMTF/Fix158-Dont-Clear-Creds
Browse files Browse the repository at this point in the history
Removed clearing of username and password to allow for sessions to be re-established
  • Loading branch information
mraineri authored Aug 9, 2024
2 parents e0d4c53 + d9d291d commit f24a1aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/redfish/rest/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,py38,py39,py310
envlist = py38,py39,py311

[testenv]
usedevelop = True
Expand All @@ -18,4 +18,4 @@ deps = flake8
commands = flake8 tests/ src/redfish/discovery

[travis]
python = 3.7: py37
python = 3.11: py311

0 comments on commit f24a1aa

Please sign in to comment.