Always use ntop.isClickHouseEnabled() from lua. Remove prefs.is_dump_flows_to_mysql_enabled to avoid inconsistencies.

This commit is contained in:
Alfredo Cardigliano 2024-07-10 09:03:05 +00:00
parent abf89f79c4
commit 06965dab27
9 changed files with 14 additions and 22 deletions

View file

@ -838,7 +838,7 @@ function predicates.obsolete_mysql(toast, container)
return
end
if prefs.is_dump_flows_to_mysql_enabled and not prefs.is_dump_flows_to_clickhouse_enabled then
if prefs.is_dump_flows_to_mysql_enabled and not ntop.isClickHouseEnabled() then
local title = i18n("obsolete_mysql")
local body = i18n("obsolete_mysql_message")