modify(function arg) only for writing style

修改函数使用kwarg
This commit is contained in:
ibuler
2016-02-24 14:46:28 +08:00
parent f60a896926
commit 0a35f757e9
2 changed files with 3 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ def server_del_user(username):
bash('userdel -r %s' % username)
def get_display_msg(user, password, ssh_key_pwd, send_mail_need=False):
def get_display_msg(user, password='', ssh_key_pwd='', send_mail_need=False):
if send_mail_need:
msg = u'添加用户 %s 成功! 用户密码已发送到 %s 邮箱!' % (user.name, user.email)
else: