Browse Source

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

pull/5953/head^2
xinwen 4 years ago
parent
commit
7a61a671a2
  1. 2
      apps/assets/models/base.py

2
apps/assets/models/base.py

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