mirror of https://github.com/jumpserver/jumpserver
perf: update status
parent
49a811963c
commit
4ff128a2ed
|
@ -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',)
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue