2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix setting privilege level alone for ipmi

The logic incorrectly had it depend on password also being present.
This commit is contained in:
Jarrod Johnson 2022-08-19 09:10:52 -04:00
parent dde66c53c9
commit a445107c7f

View File

@ -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'