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
|
|
@ -27,11 +27,16 @@ end
|
|||
|
||||
local modules = import_export_rest_utils.unpack(_POST["JSON"])
|
||||
|
||||
if not modules or not modules["snmp"] then
|
||||
if not modules then
|
||||
rest_utils.answer(rest_utils.consts.err.invalid_args)
|
||||
return
|
||||
end
|
||||
|
||||
if not modules["snmp"] then
|
||||
rest_utils.answer(rest_utils.consts.err.configuration_file_mismatch)
|
||||
return
|
||||
end
|
||||
|
||||
local items = {}
|
||||
|
||||
local snmp_ie = snmp_import_export:create()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue