diff options
author | Andrew Lewis <nerf@judo.za.org> | 2020-11-03 11:42:59 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2020-11-03 11:43:13 +0200 |
commit | 8a15e3d0efced1d19eabbbb1272656b178704fd8 (patch) | |
tree | 1c58486a4d8a5b0c49f7a3b427aa47f28800c73d /lualib/rspamadm/configwizard.lua | |
parent | 6e105da2247e85be60ff31f6046dc8e24c87d807 (diff) | |
download | rspamd-8a15e3d0efced1d19eabbbb1272656b178704fd8.tar.gz rspamd-8a15e3d0efced1d19eabbbb1272656b178704fd8.zip |
[Minor] Rspamadm: avoid errors when Redis is unconfigured (#3489)
Diffstat (limited to 'lualib/rspamadm/configwizard.lua')
-rw-r--r-- | lualib/rspamadm/configwizard.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/rspamadm/configwizard.lua b/lualib/rspamadm/configwizard.lua index d5b56ccb1..bd7cd37c0 100644 --- a/lualib/rspamadm/configwizard.lua +++ b/lualib/rspamadm/configwizard.lua @@ -451,7 +451,7 @@ local function check_redis_classifier(cls, changes) local parsed_redis = lua_redis.try_load_redis_servers(cls, nil) - if not parsed_redis then + if not parsed_redis and redis_params then parsed_redis = lua_redis.try_load_redis_servers(redis_params, nil) if not parsed_redis then printf("Cannot parse Redis params") |