Fix filters being lost after selecting local/remote hosts filter

This commit is contained in:
emanuele-f 2017-01-12 10:13:24 +01:00
parent ec6972ba9d
commit 2141004cc6
2 changed files with 49 additions and 45 deletions

View file

@ -2527,6 +2527,19 @@ function table.merge(a, b)
return merged
end
function table.clone(t, filter)
local clone = {}
local filter = filter or function (k, v) return true end
for k, v in pairs(t) do
if filter(k, v) then
clone[k] = v
end
end
return clone
end
function toboolean(s)
if s == "true" then
return true