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

Fix the incorrect parameter name in setting password policy

The mistake was keeping the requisite rule from applying
This commit is contained in:
Jarrod Johnson 2022-03-30 11:16:33 -04:00
parent d651c29149
commit 777bdfac5c

View File

@ -236,7 +236,7 @@ class NodeHandler(immhandler.NodeHandler):
rsp = wc.getresponse()
rsp.read()
# We must step down change interval and reusecycle to restore password
wc.grab_json_response('/api/dataset', {'USER_GlabalMinPassChgInt': '0', 'USER_GlobalMinPassReuseCycle': '0'})
wc.grab_json_response('/api/dataset', {'USER_GlobalMinPassChgInt': '0', 'USER_GlobalMinPassReuseCycle': '0'})
wc.request('POST', '/api/function', json.dumps(
{'USER_UserPassChange': '1,{0}'.format(password)}))
rsp = wc.getresponse()