2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 12:17:44 +00:00

Fix SD650 Redfish

SD650 was not detected as a Lenovo
system.

Change-Id: Ie0e0213058749c25840120447373e457e10aa5aa
This commit is contained in:
Jarrod Johnson 2019-06-21 11:26:22 -04:00
parent ae0cc2d516
commit 2d5d72eaf7

View File

@ -18,7 +18,7 @@ from pyghmi.redfish.oem.lenovo import xcc
def get_handler(sysinfo, sysurl, webclient, cache):
leninf = sysinfo.get('Oem', {}).get('Lenovo', {})
if 'FrontPanelUSB' in leninf:
if 'FrontPanelUSB' in leninf or sysinfo.get('SKU', '').startswitch('7X58'):
return xcc.OEMHandler(sysinfo, sysurl, webclient, cache)
else:
return generic.OEMHandler(sysinfo, sysurl, webclient, cache)