Skip to content

Commit 0428cde

Browse files
authored
Merge pull request #502 from redhat-performance/development
fix: supermicro session uri on redfish v101
2 parents ea3db3b + 5479168 commit 0428cde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install_requires =
3434
setuptools>=39.0
3535
async-lru>=2.0
3636
package_dir =
37-
=src
37+
= src
3838
zip_safe = True
3939

4040
[options.packages.find]

src/badfish/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ async def find_session_uri(self):
393393

394394
_uri = "%s%s" % (self.host_uri, session_uri)
395395
check_response = await self.http_client.get_request(_uri, _continue=True, _get_token=True)
396-
if check_response is None:
396+
if check_response is None or check_response.status != 200:
397397
session_uri = "/redfish/v1/SessionService/Sessions"
398398

399399
return session_uri

0 commit comments

Comments
 (0)