From 2ce293bd81ad04447ed5767e21647bf731f887b2 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Tue, 14 Mar 2023 17:15:04 +0800 Subject: [PATCH] fix: push ssh key account bug (#9948) Co-authored-by: feng <1304903146@qq.com> --- apps/accounts/automations/push_account/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/accounts/automations/push_account/manager.py b/apps/accounts/automations/push_account/manager.py index ec2c2f512..92fde0b37 100644 --- a/apps/accounts/automations/push_account/manager.py +++ b/apps/accounts/automations/push_account/manager.py @@ -45,7 +45,7 @@ class PushAccountManager(ChangeSecretManager, AccountBasePlaybookManager): } private_key_path = None - if self.secret_type == SecretType.SSH_KEY: + if secret_type == SecretType.SSH_KEY: private_key_path = self.generate_private_key_path(new_secret, path_dir) new_secret = self.generate_public_key(new_secret)