fix: 修复使用key 方式 ansible 不能连接的问题 (#9675)

Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
This commit is contained in:
fit2bot
2023-02-21 22:45:02 +08:00
committed by GitHub
parent d2deaf10d1
commit 1bb128526a

View File

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