Skip to content

Commit

Permalink
Fixes timeseries of hosts with resolved names not working (#8787)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Nov 5, 2024
1 parent f3d471d commit b438573
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/lua/modules/timeseries/ts_data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ local function addHostInfo(tags)
if not isEmptyString(host["host"]) and serialize_by_mac then
local host_info = interface.getHostMinInfo(host["host"], host["vlan"])
if (host_info ~= nil) then
-- Add the label if available
if (host_info.name) and not isEmptyString(host_info.name) then
-- Add the symbolic host name (if present)
tags.label = host_info.name
end

-- Add the label MAC if available
if (host_info.mac) and not isEmptyString(host_info.mac) then
tags.mac = host_info.mac;
Expand Down

0 comments on commit b438573

Please sign in to comment.