]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rspamadm: avoid errors when Redis is unconfigured (#3489) 3540/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 3 Nov 2020 09:42:59 +0000 (11:42 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 3 Nov 2020 09:43:13 +0000 (11:43 +0200)
lualib/rspamadm/configwizard.lua

index d5b56ccb1203bc28914beb5ee0f10239b47c76c2..bd7cd37c0fd9b7981f1963021842d937f0904dd8 100644 (file)
@@ -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")