Skip to content

Commit 5645442

Browse files
committed
Fixed bug in recent workaround logic for services not returning the 'Location' header to not print the workaround warning for failed login attempts
Signed-off-by: Mike Raineri <michael.raineri@dell.com>
1 parent 07a7a67 commit 5645442

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/redfish/rest/v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def session_location(self):
288288
"""Property for accessing the saved session location"""
289289
if self._session_location:
290290
return self._session_location
291+
if self.status not in [200, 201, 202, 204]:
292+
return None
291293

292294
self._session_location = self.getheader('location')
293295
if self._session_location is None:

0 commit comments

Comments
 (0)