aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-26 18:15:10 +0100
committerGitHub <noreply@github.com>2019-08-26 18:15:10 +0100
commitdb7221371cfde0b0cd7b9fef48c76dae51bf7f3c (patch)
tree9cfeaaa18e4a1d061b4d2011bfc23c006e02dfef /lualib/lua_redis.lua
parentccbb2dc85983f13064d80c92f036a1682391d153 (diff)
parent5b370ea69b57378f6dbd2b737f97967c81bd6827 (diff)
downloadrspamd-db7221371cfde0b0cd7b9fef48c76dae51bf7f3c.tar.gz
rspamd-db7221371cfde0b0cd7b9fef48c76dae51bf7f3c.zip
Merge pull request #3016 from CAPSLOCK2000/set_redis_sentinel_masters_pattern
[Minor] 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 10aa9e8c0..d607c68dc 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)