From 91287585025860012e3e6d17aed3b6c37890f899 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 6 Mar 2025 15:09:00 -0500 Subject: [PATCH] Fix password epiration set in xcc3 Change-Id: Ifc534c97963127b60fdb7b153cf22e7f8c0ab401 --- pyghmi/redfish/oem/lenovo/xcc3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/oem/lenovo/xcc3.py b/pyghmi/redfish/oem/lenovo/xcc3.py index 77e7b07e..c26def08 100644 --- a/pyghmi/redfish/oem/lenovo/xcc3.py +++ b/pyghmi/redfish/oem/lenovo/xcc3.py @@ -270,7 +270,7 @@ class OEMHandler(generic.OEMHandler): acctattribs['Oem']['Lenovo'][ self.oemacctmap[key.lower()]] = currval if key.lower() == 'password_expiration': - warntime = str(int(int(currval) * 0.08)) + warntime = int(int(currval) * 0.08) acctattribs['Oem']['Lenovo'][ 'PasswordExpirationWarningPeriod'] = warntime elif key.lower() in self.acctmap: