]> source.dussan.org Git - rspamd.git/commitdiff
Actually set sentinel_masters_pattern. 3016/head
authorcgielen <c.gielen@uvt.nl>
Thu, 22 Aug 2019 10:52:25 +0000 (12:52 +0200)
committercgielen <c.gielen@uvt.nl>
Fri, 23 Aug 2019 14:18:33 +0000 (16:18 +0200)
lualib/lua_redis.lua

index 27ac5347851341ca7c778d16f89ac8508a9d9623..78235a02acbc7b0be0760ba79923ef7d6a69e0eb 100644 (file)
@@ -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)