Possible fix for issue (#7097)

This commit is contained in:
MatteoBiscosi 2023-01-13 17:13:15 +01:00
parent bed94107d1
commit 5724a4c94c

View file

@ -170,8 +170,10 @@ function printHostPoolDropdown(base_url, page_params, host_pool_list)
if host_pool then
local id = tonumber(host_pool)
ordered_host_pool_list[id] = {}
ordered_host_pool_list[id]["count"] = host_pool_list[id]["count"]
if host_pool_list[id] then
ordered_host_pool_list[id] = {}
ordered_host_pool_list[id]["count"] = host_pool_list[id]["count"]
end
else
for key, value in pairs(host_pool_list) do
ordered_host_pool_list[key] = {}