mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Implements transactional host pools members add
This commit is contained in:
parent
7f3b9a4a93
commit
e7a6682aba
3 changed files with 55 additions and 6 deletions
|
|
@ -27,6 +27,9 @@ end
|
|||
|
||||
local s = host_pools:create()
|
||||
local members = split(members_file_content, "\n")
|
||||
|
||||
host_pools:start_transaction()
|
||||
|
||||
for _, member in ipairs(members) do
|
||||
-- TODO: add the member to the right host pool using pools_rest_utils
|
||||
|
||||
|
|
@ -66,4 +69,6 @@ for _, member in ipairs(members) do
|
|||
end
|
||||
end
|
||||
|
||||
host_pools:end_transaction()
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue