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

Co-authored-by: Aaron3S <chenyang@fit2cloud.com>
pull/9679/head
fit2bot 2023-02-21 22:45:02 +08:00 committed by GitHub
parent d2deaf10d1
commit 1bb128526a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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