From 8726112ccba0209054b22be3174db52e0514cce0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 20 Sep 2018 13:34:46 +0100 Subject: [Minor] Fix more issues with reputation and redis schema --- lualib/lua_redis.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lualib/lua_redis.lua') diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 314cbbef1..ae0f36ae0 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -184,7 +184,7 @@ local function rspamd_parse_redis_server(module_name, module_opts, no_fallback) ret = try_load_redis_servers(opts, rspamd_config, result) if ret then - ret,schema_error = config_schema:transform(ret) + ret,schema_error = config_schema:transform(result) if ret then return ret end end @@ -207,7 +207,7 @@ local function rspamd_parse_redis_server(module_name, module_opts, no_fallback) ret = try_load_redis_servers(opts[module_name], rspamd_config, result) if ret then - ret,schema_error = config_schema:transform(ret) + ret,schema_error = config_schema:transform(result) if ret then return ret end end @@ -227,7 +227,7 @@ local function rspamd_parse_redis_server(module_name, module_opts, no_fallback) end if ret then - ret,schema_error = config_schema:transform(ret) + ret,schema_error = config_schema:transform(result) if ret then return ret end end @@ -235,7 +235,7 @@ local function rspamd_parse_redis_server(module_name, module_opts, no_fallback) end if result.read_servers then - result,schema_error = config_schema:transform(ret) + result,schema_error = config_schema:transform(result) if result then return result end else -- cgit v1.2.3