Commit 6ae84b33 authored by guanghongwei's avatar guanghongwei

修改chgSudo.py

parent 6418033e
......@@ -663,7 +663,7 @@ def chgSudo(request):
ori_cmds.extend(cmds)
new_cmds = list(set(ori_cmds))
else:
new_cmds = list(set(ori_hosts) - cmds)
new_cmds = list(set(ori_cmds) - cmds)
l.modify(user_dn, {'sudoCommand': new_cmds})
msg = '修改sudo命令成功'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment