Implements transactional host pools members add

This commit is contained in:
Simone Mainardi 2020-11-13 19:15:21 +01:00
parent 7f3b9a4a93
commit e7a6682aba
3 changed files with 55 additions and 6 deletions

View file

@ -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)