perf: update status

pull/14557/head
ibuler 2024-12-02 14:25:16 +08:00
parent 49a811963c
commit 4ff128a2ed
3 changed files with 2 additions and 16 deletions

View File

@ -97,20 +97,6 @@ class AccountRiskViewSet(OrgBulkModelViewSet):
data = {'message': 'Success'}
return Response(data)
# 处理风险
def handle_add_account(self):
pass
def handle_disable_remote(self):
pass
def handle_delete_remote(self):
pass
def handle_delete_both(self):
pass
class CheckAccountEngineViewSet(JMSModelViewSet):
search_fields = ('name',)

View File

@ -196,7 +196,7 @@ class ChangeSecretManager(AccountBasePlaybookManager):
except Exception as e:
print(f"\033[31m Save {host} recorder error: {e} \033[0m\n")
def on_runner_failed(self, runner, e):
def on_runner_failed(self, runner, e, **kwargs):
logger.error("Account error: ", e)
def check_secret(self):

View File

@ -519,7 +519,7 @@ class BasePlaybookManager(PlaybookPrepareMixin, BaseManager):
cb = runner.run(**kwargs)
self.on_runner_success(runner, cb)
except Exception as e:
self.on_runner_failed(runner, e, **runner_info)
self.on_runner_failed(runner, e, **info)
finally:
ssh_tunnel.local_gateway_clean(runner)
print("\n")