From: cgielen Date: Thu, 22 Aug 2019 10:52:25 +0000 (+0200) Subject: Actually set sentinel_masters_pattern. X-Git-Tag: 2.0~340^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3016%2Fhead;p=rspamd.git Actually set sentinel_masters_pattern. --- 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)