Major rework of user_scripts.lua to use new pools

This commit is contained in:
Simone Mainardi 2020-07-10 13:01:29 +02:00
parent 2722447a18
commit 09c69edb22
10 changed files with 22 additions and 197 deletions

View file

@ -146,9 +146,8 @@ function setup()
local configsets = user_scripts.getConfigsets()
-- In case of viewed interfaces, the configuration retrieved is the one belonging to the
-- view.
flows_config, confset_id = user_scripts.getTargetConfig(configsets, "flow", (view_ifid or ifid)..'')
-- Flows config is system-wide, always take the DEFAULT_CONFIGSET_ID
flows_config, confset_id = user_scripts.getConfigById(configsets, user_scripts.DEFAULT_CONFIGSET_ID, "flow")
alerted_user_script = nil
-- Load the disabled hosts status. As hosts stay in the view, the correct disabled status needs to look there