fix(userdel) 修复无法删除在线用户bug

当用户已经登录到jumpserver时,web上删除用户时失败,也没有提示

修改方法: userdel -r -f 强制删除

close #156
pull/157/head
ibuler 2016-03-24 18:04:04 +08:00
parent bd59b6316e
commit fbc3078c07
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ def server_del_user(username):
delete a user from jumpserver linux system
删除系统上的某用户
"""
bash('userdel -r %s' % username)
bash('userdel -r -f %s' % username)
def get_display_msg(user, password='', ssh_key_pwd='', send_mail_need=False):