From 6e854fe00b66591db773f7875748268f7b1a9e94 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 17 Feb 2017 10:11:31 +0200 Subject: [PATCH] [Minor] Force actions: deal with null better --- src/plugins/lua/force_actions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 6c01afc2b..e5c309c24 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -57,7 +57,7 @@ local function gen_cb(expr, act, pool, message, subject) if subject then task:set_metric_subject(subject) end - if message then + if type(message) == 'string' then task:set_pre_result(act, message) else task:set_pre_result(act) -- 2.39.5