From 4b596a0a7b7fc336d48d36d54f1e68ed9027e9c9 Mon Sep 17 00:00:00 2001 From: YuryHrytsuk Date: Tue, 17 Sep 2024 15:47:19 +0200 Subject: [PATCH] redis commander: handle none redis_user --- services/redis-commander/config.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/redis-commander/config.json.j2 b/services/redis-commander/config.json.j2 index 48787b4e..7a3b4aca 100644 --- a/services/redis-commander/config.json.j2 +++ b/services/redis-commander/config.json.j2 @@ -3,7 +3,7 @@ "label": "{{ label }}", "host": "{{ host }}", "port": "{{ port }}", - {%- if username %} + {%- if username.lower() not in ["", "null", "none"] %} "username": "{{ username }}", {%- endif %} "password": "{{ password }}",