From 67b7949e35ebe460603aa44e1f15a89c1dbcac45 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 13 Mar 2017 14:33:27 +0200 Subject: [PATCH] [Minor] Fix tests --- src/plugins/lua/whitelist.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index f8c5b1b9b..7b6a4c7ba 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -46,11 +46,13 @@ local function whitelist_cb(symbol, rule, task) return true,mult end elseif rule['maps'] then - for map, mult in pairs(rule['maps']) do + for map, mmult in pairs(rule['maps']) do local val = map:get_key(dom) if val then if #val > 0 then mult = tonumber(val) + else + mult = mmult end table.insert(domains, dom) return true,mult -- 2.39.5