host_details.lua: fix format of MAC-based host classification

This commit fixes format of host classification based on MAC
in case classification is not successful.
This commit is contained in:
Arianna Avanzini 2015-07-08 02:53:20 +02:00
parent 0d2eeeb4d8
commit 9a26d6d6a8
2 changed files with 2 additions and 2 deletions

View file

@ -1590,7 +1590,7 @@ function get_mac_classification(mac_address)
t = split(mac_line, "\t")
if (string.match(mac_address, t[1]..".*") ~= nil) then
file_mac.close()
return split(t[2], " ")[1]
return "("..split(t[2], " ")[1]..")"
end
end
mac_line = file_mac:read("*l")