Migrate code to index based device type

This commit is contained in:
emanuele-f 2017-08-16 16:45:41 +02:00
parent 29a5a7e013
commit 08ec407fbb
11 changed files with 88 additions and 63 deletions

View file

@ -238,7 +238,7 @@ for _key, _value in pairsByKeys(vals, funct) do
print(" ")
local icon = getOSIcon(value["os"])
icon = icon .. discover.devtype2icon(hosts_stats[key].device_type)
icon = icon .. discover.devtype2icon(hosts_stats[key].devtype)
icon = icon:gsub('"',"'")
print(icon)