mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Removes severity from user scripts (now unified with score)
Addresses #5281
This commit is contained in:
parent
6b49f39b92
commit
175cdbabdc
6 changed files with 5 additions and 89 deletions
|
|
@ -1048,11 +1048,9 @@ end
|
|||
-- ##############################################
|
||||
|
||||
-- @brief Update the configuration of a specific script in a configset
|
||||
function user_scripts.updateScriptConfig(script_key, subdir, new_config, additional_params, additional_filters)
|
||||
function user_scripts.updateScriptConfig(script_key, subdir, new_config, additional_filters)
|
||||
local configset = user_scripts.getConfigset()
|
||||
local script_type = user_scripts.getScriptType("flow")
|
||||
-- additional_params contains additional params for script conf such as the severity
|
||||
additional_params = additional_params or {}
|
||||
new_config = new_config or {}
|
||||
local applied_config = {}
|
||||
|
||||
|
|
@ -1065,10 +1063,6 @@ function user_scripts.updateScriptConfig(script_key, subdir, new_config, additio
|
|||
local valid = true
|
||||
local rv_or_err = ""
|
||||
|
||||
for key, value in pairs(additional_params) do
|
||||
conf.script_conf[key] = value
|
||||
end
|
||||
|
||||
if(conf.enabled == nil) then
|
||||
return false, "Missing 'enabled' item"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue