mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Add success status in configsets API
This is needed to avoid empty tables from being interpreted as arrays by the json serializer
This commit is contained in:
parent
82e5e1f42d
commit
798f16be69
2 changed files with 10 additions and 5 deletions
|
|
@ -56,6 +56,8 @@ local result = {}
|
|||
|
||||
local success, err = user_scripts.updateScriptConfig(confset_id, script_key, subdir, data)
|
||||
|
||||
result.success = success
|
||||
|
||||
if not success then
|
||||
result.error = err
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue