mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Return configuration_file_mismatch on wring conf file
This commit is contained in:
parent
fdf0f15140
commit
f0af1500b2
5 changed files with 31 additions and 7 deletions
|
|
@ -32,13 +32,17 @@ end
|
|||
|
||||
local modules = import_export_rest_utils.unpack(_POST["JSON"])
|
||||
|
||||
if not modules or
|
||||
not modules["snmp"] or
|
||||
if not modules then
|
||||
rest_utils.answer(rest_utils.consts.err.invalid_args)
|
||||
return
|
||||
end
|
||||
|
||||
if not modules["snmp"] or
|
||||
not modules["active_monitoring"] or
|
||||
not modules["notifications"] or
|
||||
not modules["scripts"] or
|
||||
not modules["pool"] then
|
||||
rest_utils.answer(rest_utils.consts.err.invalid_args)
|
||||
rest_utils.answer(rest_utils.consts.err.configuration_file_mismatch)
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue