Use check_module key instead of script name

This commit is contained in:
emanuele-f 2019-08-08 18:03:16 +02:00
parent 899b580cc4
commit ee3a5e7413
2 changed files with 5 additions and 3 deletions

View file

@ -814,7 +814,7 @@ function alerts_api.load_check_modules(subdir, str_granularity)
local modname = string.sub(fname, 1, string.len(fname) - 4)
local check_module = require(modname)
if check_module.check_function then
if check_module.check_function and check_module.key then
if check_module.granularity and str_granularity then
-- When the module specify one or more granularities
-- at which checks have to be run, the module is only