Skip to content

Commit

Permalink
Added traceback in case of exporter_info as a number
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Sep 18, 2024
1 parent 56431ec commit 4d28c27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/lua/modules/ntop_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,11 @@ function getExportersUnifiedStats()
local unified_exporters = {}
for interface_id, device_list in pairs(flowdevs or {}) do
for device_id, exporter_info in pairs(device_list, asc) do
if type(exporter_info) == "number" then
tprint(flowdevs)
tprint(debug.traceback())
goto continue
end
local exporter_ip = exporter_info.exporter_ip
if not unified_exporters[exporter_ip] then
unified_exporters[exporter_ip] = {}
Expand Down Expand Up @@ -911,6 +916,7 @@ function getExportersUnifiedStats()
end
end
end
::continue::
end
end

Expand Down

0 comments on commit 4d28c27

Please sign in to comment.