mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
fix: 修复使用key 方式 ansible 不能连接的问题 (#9675)
Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
This commit is contained in:
parent
d2deaf10d1
commit
1bb128526a
@ -109,7 +109,7 @@ class BaseAccount(JMSOrgBaseModel):
|
||||
|
||||
@property
|
||||
def private_key_path(self):
|
||||
if not self.secret_type != SecretType.SSH_KEY \
|
||||
if self.secret_type != SecretType.SSH_KEY \
|
||||
or not self.secret \
|
||||
or not self.private_key:
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user