Skip to content

Commit

Permalink
Change infrastr check in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Jan 28, 2025
1 parent ac8dd46 commit fb2bef6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/lua/inc/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ local infrastructure_instances = {}
if ntop.isEnterpriseM() then
local infrastructure_utils = require("infrastructure_utils")
for _, v in pairs(infrastructure_utils.get_all_instances()) do
if v.interfaces and #v.interfaces > 0 then
infrastructure_instances[v.id] = {
name = v.alias,
url = v.url,
}
end
infrastructure_instances[v.id] = {
name = v.alias,
url = v.url,
}
end
local view = _GET["view"]
infrastructure_view = view and view == 'infrastructure' and table.len(infrastructure_instances) > 0
Expand Down

0 comments on commit fb2bef6

Please sign in to comment.