2
0
mirror of https://opendev.org/x/pyghmi synced 2025-02-10 15:54:29 +00:00

Correct mistake in the security mode change

Change-Id: I135c2bc16c9ca341a5bb7e68aba05fd22b660b30
This commit is contained in:
Jarrod Johnson 2022-09-23 08:28:52 -04:00
parent 308b1d49be
commit 212fbc265d

View File

@ -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: