diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index 44522d68..bc7d46b5 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -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']))