From eee43aa6bc34da62778090ba1b81fdb4b753f55b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 21 Jun 2019 15:03:23 -0400 Subject: [PATCH] Fix typo in startswith call Inadvertently checked in a typo. Change-Id: Id8f303501da31eafa9d1415b36e9d4a49e3bd22d --- pyghmi/redfish/oem/lenovo/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/oem/lenovo/main.py b/pyghmi/redfish/oem/lenovo/main.py index b5fc2163..f8e599f1 100644 --- a/pyghmi/redfish/oem/lenovo/main.py +++ b/pyghmi/redfish/oem/lenovo/main.py @@ -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)