Skip to content

Commit

Permalink
root: fix redis username in lifecycle (#9158)
Browse files Browse the repository at this point in the history
Signed-off-by: Yeechan Lu <git@orzfly.com>
  • Loading branch information
orzFly authored Apr 7, 2024
1 parent fcf7529 commit 54b951d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lifecycle/wait_for_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54b951d

Please sign in to comment.