From 212fbc265d9030dfd08ba7d22cc4a45461188d62 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 23 Sep 2022 08:28:52 -0400 Subject: [PATCH] Correct mistake in the security mode change Change-Id: I135c2bc16c9ca341a5bb7e68aba05fd22b660b30 --- pyghmi/redfish/oem/lenovo/xcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index b71fe5ed..2bf4554b 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -258,7 +258,7 @@ class OEMHandler(generic.OEMHandler): if 'cryptography_mode' in secparms: secmode = secparms['cryptography_mode'].lower() for sm in sec_mode: - if sec_mode[sm].lower().startswith(secmode): + if sec_mode[sm][0].lower().startswith(secmode): secmode = sm break else: