2
0
mirror of https://opendev.org/x/pyghmi synced 2025-02-10 07:44:02 +00:00

Fix the SMM timezone treatment

Change-Id: I32a52492a0b0f50e49b347aa37367495168eb2a3
This commit is contained in:
Jarrod Johnson 2022-08-29 09:54:05 -04:00
parent 76b36bf4b9
commit 44d2ccd440

View File

@ -434,7 +434,7 @@ class SMMClient(object):
val = int(ruleinfo.text)
except ValueError:
val = ruleinfo.text
settings[rule] = {'value': int(ruleinfo.text)}
settings[rule] = {'value': val}
dwc = self.ipmicmd.xraw_command(0x32, 0x94)
dwc = bytearray(dwc['data'])
if len(dwc) not in (3, 4) or dwc[0] == 1: