Update user_api.py

pull/276/head
老广 2016-07-12 17:00:20 +08:00 committed by GitHub
parent ecfb2f3d40
commit b5fefb4687
1 changed files with 1 additions and 0 deletions

View File

@ -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):