2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 04:07:48 +00:00

Merge "Fix typo in startswith call"

This commit is contained in:
Zuul 2019-06-21 19:32:49 +00:00 committed by Gerrit Code Review
commit 771b1781c9

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)