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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user