From 54b951d3ccaa4fd81a453798919ffab41d85979a Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Mon, 8 Apr 2024 02:05:46 +0800 Subject: [PATCH] root: fix redis username in lifecycle (#9158) Signed-off-by: Yeechan Lu --- lifecycle/wait_for_db.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lifecycle/wait_for_db.py b/lifecycle/wait_for_db.py index 9447ead0846d..450d8af076b2 100755 --- a/lifecycle/wait_for_db.py +++ b/lifecycle/wait_for_db.py @@ -39,8 +39,10 @@ def check_redis(): if CONFIG.get_bool("redis.tls", False): REDIS_PROTOCOL_PREFIX = "rediss://" REDIS_URL = ( - f"{REDIS_PROTOCOL_PREFIX}:" - f"{quote_plus(CONFIG.get('redis.password'))}@{quote_plus(CONFIG.get('redis.host'))}:" + f"{REDIS_PROTOCOL_PREFIX}" + f"{quote_plus(CONFIG.get('redis.username'))}:" + f"{quote_plus(CONFIG.get('redis.password'))}@" + f"{quote_plus(CONFIG.get('redis.host'))}:" f"{CONFIG.get_int('redis.port')}/{CONFIG.get('redis.db')}" ) while True: