diff options
author | cgielen <c.gielen@uvt.nl> | 2019-08-22 12:52:25 +0200 |
---|---|---|
committer | cgielen <c.gielen@uvt.nl> | 2019-08-23 16:18:33 +0200 |
commit | 5b370ea69b57378f6dbd2b737f97967c81bd6827 (patch) | |
tree | f77264f4572e82303dafcc8cac37e6d9a879f040 /lualib/lua_redis.lua | |
parent | 6e8df5589dbd3246ae5c6c50a82a78ffb7ab3a75 (diff) | |
download | rspamd-5b370ea69b57378f6dbd2b737f97967c81bd6827.tar.gz rspamd-5b370ea69b57378f6dbd2b737f97967c81bd6827.zip |
Actually set sentinel_masters_pattern.
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 5 |
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) |