2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-28 11:57:34 +00:00

Fix typo in startswith call

Inadvertently checked in a typo.

Change-Id: Id8f303501da31eafa9d1415b36e9d4a49e3bd22d
This commit is contained in:
Jarrod Johnson 2019-06-21 15:03:23 -04:00
parent 79e1df669d
commit eee43aa6bc

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 or sysinfo.get('SKU', '').startswitch('7X58'):
if 'FrontPanelUSB' in leninf or sysinfo.get('SKU', '').startswith('7X58'):
return xcc.OEMHandler(sysinfo, sysurl, webclient, cache)
else:
return generic.OEMHandler(sysinfo, sysurl, webclient, cache)