diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index bd50bd64..3c1cf047 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -807,10 +807,10 @@ class IpmiHandler(object): password=user['password']) self.ipmicmd.set_user_password(uid=user['uid'], mode='enable', password=user['password']) - if 'privilege_level' in user: - self.ipmicmd.set_user_access(uid=user['uid'], - privilege_level=user[ - 'privilege_level']) + if 'privilege_level' in user: + self.ipmicmd.set_user_access(uid=user['uid'], + privilege_level=user[ + 'privilege_level']) if 'enabled' in user: if user['enabled'] == 'yes': mode = 'enable'