diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index 19506ee5..10026b88 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -745,14 +745,16 @@ class IpmiHandler(object): if 'username' in user: self.ipmicmd.set_user_name(uid=user['uid'], name=user['username']) - if 'privilege_level' in user: - self.ipmicmd.set_user_access(uid=user['uid'], - privilege_level=user['privilege_level']) + if 'password' in user: self.ipmicmd.set_user_password(uid=user['uid'], 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 'enabled' in user: if user['enabled'] == 'yes': mode = 'enable'