From d56ddb16b1dd50c8a3b07f5e271a6d26f43db263 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 20 Jun 2022 21:26:21 +0200 Subject: [PATCH] lifecycle: fix confusing success messages in startup healthiness check Signed-off-by: Jens Langhammer --- lifecycle/wait_for_db.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lifecycle/wait_for_db.py b/lifecycle/wait_for_db.py index bc880c3db..0b37480ed 100755 --- a/lifecycle/wait_for_db.py +++ b/lifecycle/wait_for_db.py @@ -51,8 +51,7 @@ while True: except OperationalError as exc: sleep(1) j_print(f"PostgreSQL connection failed, retrying... ({exc})") - finally: - j_print("PostgreSQL connection successful") + j_print("PostgreSQL connection successful") REDIS_PROTOCOL_PREFIX = "redis://" if CONFIG.y_bool("redis.tls", False): @@ -70,7 +69,6 @@ while True: except RedisError as exc: sleep(1) j_print(f"Redis Connection failed, retrying... ({exc})", redis_url=REDIS_URL) - finally: - j_print("Redis Connection successful") + j_print("Redis Connection successful") j_print("Finished authentik bootstrap")