mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Update runTest API in all endpoint plugins. Add action=test in edit_notification_recipient.lua
This commit is contained in:
parent
8cd379bfb9
commit
e344508df1
8 changed files with 145 additions and 99 deletions
|
|
@ -500,6 +500,7 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function base_pools:get_recipients(pool_id)
|
||||
local pool_details
|
||||
local res = {}
|
||||
|
||||
if pool_id == nil then
|
||||
|
|
@ -509,17 +510,18 @@ function base_pools:get_recipients(pool_id)
|
|||
local locked = self:_lock()
|
||||
|
||||
if locked then
|
||||
local pool_details = self:get_pool(pool_id)
|
||||
|
||||
if pool_details and pool_details["recipients"] then
|
||||
for _, recipient in pairs(pool_details["recipients"]) do
|
||||
res[#res + 1] = recipient
|
||||
end
|
||||
end
|
||||
pool_details = self:get_pool(pool_id)
|
||||
|
||||
self:_unlock()
|
||||
end
|
||||
|
||||
if pool_details and pool_details["recipients"] then
|
||||
for _, recipient in pairs(pool_details["recipients"]) do
|
||||
res[#res + 1] = recipient
|
||||
end
|
||||
end
|
||||
|
||||
return res
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue