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:
commit
771b1781c9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user