removed redundant host pool defaul inside dropdown

This commit is contained in:
gabryon99 2020-07-30 16:13:24 +02:00
parent 73ac8af04f
commit 86175b2b5b
2 changed files with 4 additions and 10 deletions

View file

@ -902,14 +902,6 @@ function graph_utils.poolDropdown(ifId, pool_id, exclude)
pool_id = tostring(pool_id)
local output = {}
output[#output + 1] = '<option value="' .. host_pools_instance.DEFAULT_POOL_ID .. '"'
if pool_id == tostring(host_pools_instance.DEFAULT_POOL_ID) then
output[#output + 1] = ' selected'
end
output[#output + 1] = '>' .. host_pools_instance.DEFAULT_POOL_NAME .. '</option>'
exclude = exclude or {}
for _,pool in ipairs(host_pools_instance:get_all_pools()) do