2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 04:07:48 +00:00

Fix typo in ruleset in set_bmc_configuration

IMM handler had a mistake in the variable name.

Change-Id: I051b8b44407d10b685a02af63371fa4af8a9ca40
This commit is contained in:
Jarrod Johnson 2019-09-12 08:37:30 -04:00
parent b5dc8a8b9d
commit 43553ea77b

View File

@ -864,7 +864,7 @@ class XCCClient(IMMClient):
ruleset[self.rulemap[key.lower()]] = changeset[key]['value']
if key.lower() == 'password_expiration':
warntime = str(int(int(changeset[key]['value']) * 0.08))
rulset['USER_GlobalPassExpWarningPeriod'] = warntime
ruleset['USER_GlobalPassExpWarningPeriod'] = warntime
else:
raise pygexc.InvalidParameterValue(
'{0} not a known setting'.format(key))