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

pull/5931/head
xinwen 2021-04-06 17:28:15 +08:00 committed by 老广
parent 8a2b0a7845
commit bd11018cef
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 ''