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

pull/5909/head
xinwen 4 years ago committed by 老广
parent 2ff01a4bb3
commit cd9587f68e

@ -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 ''

Loading…
Cancel
Save