Temporary fix for threshold value to nil

This commit is contained in:
Matteo Biscosi 2021-02-21 17:51:30 +01:00
parent fe9e3a2ea8
commit 69ebe4e1a6

View file

@ -607,6 +607,10 @@ function alerts_api.checkThresholdAlert(params, alert_type, value, attacker, vic
local alarmed = false
local threshold = threshold_config.threshold or threshold_config.default_contacts
if not value or not threshold then
return
end
local alert = alert_type.new(
params.user_script.key,
value,