aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-20 13:34:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-20 13:42:13 +0100
commit8726112ccba0209054b22be3174db52e0514cce0 (patch)
tree86be1b0d7f42a5805619a82786f74a30f0501730 /lualib/lua_redis.lua
parente65c04f17cebf52a944ab1c6622969632f828650 (diff)
downloadrspamd-8726112ccba0209054b22be3174db52e0514cce0.tar.gz
rspamd-8726112ccba0209054b22be3174db52e0514cce0.zip
[Minor] Fix more issues with reputation and redis schema
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua8
1 files changed, 4 insertions, 4 deletions
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