mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Improves use of classes for user script templates
This commit is contained in:
parent
1dd93e7845
commit
33d035b96c
8 changed files with 24 additions and 25 deletions
|
|
@ -33,17 +33,17 @@ end
|
|||
|
||||
-- #######################################################
|
||||
|
||||
function long_lived:parseConfig(script, conf)
|
||||
function long_lived:parseConfig(conf)
|
||||
if(tonumber(conf.min_duration) == nil) then
|
||||
return false, "bad min_duration value"
|
||||
end
|
||||
|
||||
return http_lint.validateListItems(script, conf)
|
||||
return http_lint.validateListItems(self._user_script, conf)
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
||||
function long_lived:describeConfig(script, hooks_conf)
|
||||
function long_lived:describeConfig(hooks_conf)
|
||||
if not hooks_conf.all then
|
||||
return '' -- disabled, nothing to show
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue