2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-12 17:34:19 +00:00

Add a 'not ready' for overview fetch

If the fetch does not have 'Systems', it seems to
mean the redfish subsystem is not ready yet
on the target BMC.

Change-Id: I6935ab31d090185e1bcc43364e8fc306f5635975
This commit is contained in:
Jarrod Johnson
2019-12-02 15:40:45 -05:00
parent 3b3204b8bf
commit 6c1f7dd079
+2
View File
@@ -246,6 +246,8 @@ class Command(object):
self.username = userid
self.password = password
self.wc.set_header('Content-Type', 'application/json')
if 'Systems' not in overview:
raise exc.PyghmiException('Redfish not ready')
systems = overview['Systems']['@odata.id']
res = self.wc.grab_json_response_with_status(systems)
if res[1] == 401: