mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix for builtin endpoint when upgrading from 4.2 to 5.0
This commit is contained in:
parent
591506aba1
commit
870a2f2bea
1 changed files with 4 additions and 1 deletions
|
|
@ -49,9 +49,12 @@ function recipients.initialize()
|
|||
for _, category in pairs(checks.check_categories) do
|
||||
all_categories[#all_categories + 1] = category.id
|
||||
end
|
||||
|
||||
|
||||
for endpoint_key, endpoint in pairs(endpoints.get_types()) do
|
||||
if endpoint.builtin then
|
||||
-- Delete (if existing) the old, string-keyed endpoint configuration
|
||||
endpoints.delete_config("builtin_config_"..endpoint_key)
|
||||
|
||||
-- Add the configuration
|
||||
local res = endpoints.add_config(
|
||||
endpoint_key --[[ the type of the endpoint--]],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue