From f07e4e53ec2bf7cd8b6cb003acc0f1521c798c55 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:53:21 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=8E=A8=E9=80=81=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=90=8E=20=E8=AE=BE=E7=BD=AE=E8=B4=A6=E5=8F=B7=E5=8F=AF?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=80=A7=20(#10211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/accounts/automations/push_account/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/accounts/automations/push_account/manager.py b/apps/accounts/automations/push_account/manager.py index fe117f018..9944f12ed 100644 --- a/apps/accounts/automations/push_account/manager.py +++ b/apps/accounts/automations/push_account/manager.py @@ -1,6 +1,6 @@ from copy import deepcopy -from accounts.const import AutomationTypes, SecretType +from accounts.const import AutomationTypes, SecretType, Connectivity from assets.const import HostTypes from common.utils import get_logger from ..base.manager import AccountBasePlaybookManager @@ -74,6 +74,7 @@ class PushAccountManager(ChangeSecretManager, AccountBasePlaybookManager): return account.secret = new_secret account.save(update_fields=['secret']) + account.set_connectivity(Connectivity.OK) def on_host_error(self, host, error, result): pass