commit 8a15e3d: [Minor] Rspamadm: avoid errors when Redis is unconfigured (#3489)
Andrew Lewis
nerf at judo.za.org
Tue Nov 3 19:49:07 UTC 2020
Author: Andrew Lewis
Date: 2020-11-03 11:42:59 +0200
URL: https://github.com/rspamd/rspamd/commit/8a15e3d0efced1d19eabbbb1272656b178704fd8 (refs/pull/3540/head)
[Minor] Rspamadm: avoid errors when Redis is unconfigured (#3489)
---
lualib/rspamadm/configwizard.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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")
More information about the Commits
mailing list