Commit 1b08c6ea authored by guanghongwei's avatar guanghongwei

修改

parent 6ae84b33
......@@ -663,7 +663,7 @@ def chgSudo(request):
ori_cmds.extend(cmds)
new_cmds = list(set(ori_cmds))
else:
new_cmds = list(set(ori_cmds) - cmds)
new_cmds = list(set(ori_cmds) - set(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