2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-15 19:04:21 +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
+1 -1
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)