mirror of
https://opendev.org/x/pyghmi
synced 2026-01-10 02:02:30 +00:00
Restore generic fallback
When trying for an early BMC handler, we can't get bmcinfo sanely. For now, skip that check since the generic check only helps if the managers and systems are ambiguous. Change-Id: I767ffbf4e0d9dbe5a727a5141124957c89407a82
This commit is contained in:
@@ -34,6 +34,8 @@ def get_oem_handler(sysinfo, sysurl, webclient, cache, cmd, rootinfo={}):
|
||||
if oem in OEMMAP:
|
||||
return OEMMAP[oem].get_handler(sysinfo, sysurl, webclient, cache,
|
||||
cmd, rootinfo)
|
||||
if rootinfo: # rootinfo indicates early invocation, bmcinfo not ready yet
|
||||
return generic.OEMHandler(sysinfo, sysurl, webclient, cache, cmd._gpool, rootinfo)
|
||||
bmcinfo = cmd.bmcinfo
|
||||
for oem in bmcinfo.get('Oem', {}):
|
||||
if oem in OEMMAP:
|
||||
|
||||
Reference in New Issue
Block a user