Fixed host pool nil value

This commit is contained in:
Matteo Biscosi 2021-05-27 14:46:18 +02:00
parent 024041bbc7
commit ee01902bff

View file

@ -67,6 +67,8 @@ function drop_host_pool_utils.check_periodic_hosts_list()
-- Get the pool name
local blocked_hosts_pool_name = pools.DROP_HOST_POOL_NAME
local blocked_hosts_pool_members = {}
local host_pool = host_pools:create()
local all_pools = host_pool:get_all_pools()
-- Check the existance of the pool
for _, value in pairs(all_pools) do