From a58dbc9171c1fac8a39b66e644bb6dd679174236 Mon Sep 17 00:00:00 2001 From: lework Date: Tue, 12 Nov 2019 18:00:52 +0800 Subject: [PATCH] add exec action --- python/supervisor_healthCheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/supervisor_healthCheck.py b/python/supervisor_healthCheck.py index a8099f0..09145fd 100644 --- a/python/supervisor_healthCheck.py +++ b/python/supervisor_healthCheck.py @@ -290,10 +290,10 @@ class HealthCheck(object): if not check_state[program]['action'] or ( check_state[program]['failure'] != 0 and check_state[program]['failure'] % (periodSeconds * 2) == 0): action_param = { - 'action_type': action_type, + 'action_type': action_type, 'check_result': check_result.get('msg', ''), 'action_exec_cmd': action_exec_cmd - } + } self.action(program, **action_param) check_state[program]['action'] = True