Fix errors in RTT hosts import/reset

This commit is contained in:
emanuele-f 2020-03-27 14:45:05 +01:00
parent e360f51124
commit 93c2ce2b6b
2 changed files with 7 additions and 5 deletions

View file

@ -130,10 +130,10 @@ end
-- ##############################################
function rtt_utils.resetConfig()
local hosts = rtt_utils.getHosts(true --[[ config only]])
local hosts = rtt_utils.getHosts()
for k in pairs(hosts) do
rtt_utils.deleteHost(k)
for k,v in pairs(hosts) do
rtt_utils.deleteHost(v.host, v.measurement)
end
ntop.delCache(rtt_hosts_key)