Fix rest/v1/get/host/active.lua

This commit is contained in:
Alfredo Cardigliano 2020-08-25 15:19:16 +02:00
parent 6368073bc4
commit 00a9879019
2 changed files with 3 additions and 3 deletions

View file

@ -1563,7 +1563,7 @@ end
function hostkey2hostinfo(key)
local host = {}
local info = split(key,"@")
if(info[1] ~= nil) then host["host"] = info[1] end
if(info[1] ~= nil) then host["host"] = info[1] end
if(info[2] ~= nil) then
host["vlan"] = tonumber(info[2])
else