perf: 推送成功后 设置账号可连接性 (#10211)

Co-authored-by: feng <1304903146@qq.com>
pull/10213/head
fit2bot 2023-04-14 17:53:21 +08:00 committed by GitHub
parent b1374c6aba
commit f07e4e53ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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