mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Returns pool members as array via REST
This commit is contained in:
parent
40689081c7
commit
a4abaed7b3
1 changed files with 6 additions and 1 deletions
|
|
@ -228,8 +228,13 @@ function pools_rest_utils.get_pool_members(pools)
|
|||
return
|
||||
end
|
||||
|
||||
for member, details in pairs(cur_pool["member_details"]) do
|
||||
details["member"] = member
|
||||
res[#res + 1] = details
|
||||
end
|
||||
|
||||
local rc = rest_utils.consts_ok
|
||||
print(rest_utils.rc(rc, cur_pool["member_details"]))
|
||||
print(rest_utils.rc(rc, res))
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue