mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Adds configset name to pools getter
This commit is contained in:
parent
a35a4f86fd
commit
d848b64862
1 changed files with 10 additions and 0 deletions
|
|
@ -322,6 +322,16 @@ function base_pools:get_pool(pool_id)
|
|||
pool_details["member_details"][member] = self:get_member_details(member)
|
||||
end
|
||||
end
|
||||
|
||||
if pool_details["configset_id"] then
|
||||
local configset_id = pool_details["configset_id"]
|
||||
local config_sets = user_scripts.getConfigsets()
|
||||
|
||||
-- Add a new (small) table with configset details, including the name
|
||||
if config_sets[configset_id] and config_sets[configset_id]["name"] then
|
||||
pool_details["configset_details"] = {name = config_sets[configset_id]["name"]}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue