mirror of
https://opendev.org/x/pyghmi
synced 2025-01-14 19:57:47 +00:00
Fix incorrect rules scope for SMM
The SMM ruleset erroneously emptied array each pass. Fix by moving to the correct scope. Change-Id: I3e8984c89bf4297883bd6dbd9e478774fd032ebf
This commit is contained in:
parent
d99e8fdf1c
commit
f24019eed4
@ -300,11 +300,11 @@ class SMMClient(object):
|
||||
|
||||
|
||||
def set_bmc_configuration(self, changeset):
|
||||
rules = []
|
||||
for key in changeset:
|
||||
if (isinstance(changeset[key], str) or
|
||||
isinstance(changeset[key], unicode)):
|
||||
changeset[key] = {'value': changeset[key]}
|
||||
rules = []
|
||||
if key.lower() in self.rulemap:
|
||||
rules.append('{0}:{1}'.format(
|
||||
self.rulemap[key.lower()], changeset[key]['value']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user