commit 5b370ea: Actually set sentinel_masters_pattern.

cgielen c.gielen at uvt.nl
Mon Aug 26 17:21:05 UTC 2019


Author: cgielen
Date: 2019-08-22 12:52:25 +0200
URL: https://github.com/rspamd/rspamd/commit/5b370ea69b57378f6dbd2b737f97967c81bd6827 (refs/pull/3016/head)

Actually set sentinel_masters_pattern.

---
 lualib/lua_redis.lua | 5 +++++
 1 file changed, 5 insertions(+)

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)


More information about the Commits mailing list