summaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorcgielen <c.gielen@uvt.nl>2019-08-22 12:52:25 +0200
committercgielen <c.gielen@uvt.nl>2019-08-23 16:18:33 +0200
commit5b370ea69b57378f6dbd2b737f97967c81bd6827 (patch)
treef77264f4572e82303dafcc8cac37e6d9a879f040 /lualib/lua_redis.lua
parent6e8df5589dbd3246ae5c6c50a82a78ffb7ab3a75 (diff)
downloadrspamd-5b370ea69b57378f6dbd2b737f97967c81bd6827.tar.gz
rspamd-5b370ea69b57378f6dbd2b737f97967c81bd6827.zip
Actually set sentinel_masters_pattern.
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index 27ac53478..78235a02a 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -317,6 +317,11 @@ local function process_redis_opts(options, redis_params)
if not redis_params.sentinels and options.sentinels then
redis_params.sentinels = options.sentinels
end
+
+ if options['sentinel_masters_pattern'] and not redis_params['sentinel_masters_pattern'] then
+ redis_params['sentinel_masters_pattern'] = options['sentinel_masters_pattern']
+ end
+
end
local function enrich_defaults(rspamd_config, module, redis_params)