2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-11 20:41:29 +00:00

Recognize an alternate MegaRAC system name

For some multi-resource implementations, System_0 is used in lieu of 'Self'

Change-Id: I12712b0e5252f3238a2c9324f8a296c32c7fb5bb
This commit is contained in:
Jarrod Johnson
2026-02-18 12:41:55 -05:00
parent 1131f6f42b
commit 0e25239bb6

View File

@@ -24,7 +24,7 @@ class OEMHandler(generic.OEMHandler):
systems, status = webclient.grab_json_response_with_status('/redfish/v1/Systems')
if status == 200:
for system in systems.get('Members', []):
if system.get('@odata.id', '').endswith('/Self'):
if system.get('@odata.id', '').endswith('/Self') or system.get('@odata.id', '').endswith('/System_0'):
sysurl = system['@odata.id']
break
self._varsysurl = sysurl