fix: 管理用户输入带密码的秘钥报错

pull/5953/head^2
xinwen 2021-04-06 17:28:15 +08:00
parent 4a1fc0e2ac
commit 7a61a671a2
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class AuthMixin:
if self.public_key:
public_key = self.public_key
elif self.private_key:
public_key = ssh_pubkey_gen(self.private_key, self.password)
public_key = ssh_pubkey_gen(private_key=self.private_key, password=self.password)
else:
return ''