mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix notification_configs
This commit is contained in:
parent
5f5c736253
commit
2fc361d30f
1 changed files with 2 additions and 2 deletions
|
|
@ -373,6 +373,7 @@ end
|
|||
-- @brief Restore a full set of configurations, exported with get_configs_with_recipients
|
||||
-- including configuration params and associated recipients
|
||||
function notification_configs.add_configs_with_recipients(configs)
|
||||
local recipients = require "recipients"
|
||||
local rc = true
|
||||
|
||||
-- Restore Endpoints
|
||||
|
|
@ -380,9 +381,8 @@ function notification_configs.add_configs_with_recipients(configs)
|
|||
local endpoint_key = conf.endpoint_key
|
||||
local endpoint_conf_name = conf.endpoint_conf_name
|
||||
local conf_params = conf.endpoint_conf
|
||||
local recipients = conf.recipients
|
||||
|
||||
if endpoint_key and endpoint_conf_name and conf_params and recipients then
|
||||
if endpoint_key and endpoint_conf_name and conf_params and conf.recipients then
|
||||
|
||||
local ret = notification_configs.add_config(endpoint_key, endpoint_conf_name, conf_params)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue