From 5645442ab81c32417debd75feba4ebfba69d6c1f Mon Sep 17 00:00:00 2001 From: Mike Raineri Date: Thu, 27 Mar 2025 15:08:56 -0400 Subject: [PATCH] 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 --- src/redfish/rest/v1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/redfish/rest/v1.py b/src/redfish/rest/v1.py index 4509850..9760337 100644 --- a/src/redfish/rest/v1.py +++ b/src/redfish/rest/v1.py @@ -288,6 +288,8 @@ def session_location(self): """Property for accessing the saved session location""" if self._session_location: return self._session_location + if self.status not in [200, 201, 202, 204]: + return None self._session_location = self.getheader('location') if self._session_location is None: