From b5fefb4687fac86455b3f0669efba9e2cdbeee2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=B9=BF?= Date: Tue, 12 Jul 2016 17:00:20 +0800 Subject: [PATCH] Update user_api.py --- juser/user_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/juser/user_api.py b/juser/user_api.py index 3d870bac2..b44a62665 100644 --- a/juser/user_api.py +++ b/juser/user_api.py @@ -183,6 +183,7 @@ def server_del_user(username): bash('userdel -r -f %s' % username) logger.debug('rm -f %s/%s_*.pem' % (os.path.join(KEY_DIR, 'user'), username)) bash('rm -f %s/%s_*.pem' % (os.path.join(KEY_DIR, 'user'), username)) + bash('rm -f %s/%s.pem' % (os.path.join(KEY_DIR, 'user'), username)) def get_display_msg(user, password='', ssh_key_pwd='', send_mail_need=False):