2
0
mirror of https://opendev.org/x/pyghmi synced 2025-08-05 19:05:15 +00:00

Merge "A redfish device with no OEM should be generic"

This commit is contained in:
Zuul
2020-06-03 14:50:47 +00:00
committed by Gerrit Code Review

View File

@@ -24,7 +24,7 @@ def get_oem_handler(sysinfo, sysurl, webclient, cache):
for oem in sysinfo.get('Oem', {}):
if oem in OEMMAP:
return OEMMAP[oem].get_handler(sysinfo, sysurl, webclient, cache)
for oem in sysinfo.get('Links', {}).get('OEM'):
for oem in sysinfo.get('Links', {}).get('OEM', []):
if oem in OEMMAP:
return OEMMAP[oem].get_handler(sysinfo, sysurl, webclient, cache)
return generic.OEMHandler(sysinfo, sysurl, webclient, cache)