Refactors user_scripts into checks (lua)

This commit is contained in:
Simone Mainardi 2021-06-16 18:02:22 +02:00
parent 3c3aa5a25f
commit 76fd315d1b
222 changed files with 980 additions and 981 deletions

View file

@ -463,12 +463,12 @@ function endpoints.add_configs_with_recipients(configs)
-- Restore Recipients
for _, recipient_conf in ipairs(conf.recipients) do
local endpoint_recipient_name = recipient_conf.recipient_name
local user_script_categories = recipient_conf.user_script_categories
local check_categories = recipient_conf.check_categories
local minimum_severity = recipient_conf.minimum_severity
local recipient_params = recipient_conf.recipient_params
ret = recipients.add_recipient(ret.endpoint_id, endpoint_recipient_name,
user_script_categories, minimum_severity,
check_categories, minimum_severity,
false, -- Not necessary to bind to every pool: the restore takes care of tis automatically
recipient_params)