mirror of https://github.com/jumpserver/jumpserver
fix: 修复使用key 方式 ansible 不能连接的问题 (#9675)
Co-authored-by: Aaron3S <chenyang@fit2cloud.com>pull/9679/head
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