From 4fddbb2fc88bf987d32c8b8b18c83c3a40e7a346 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 10 Sep 2021 16:23:05 +0200 Subject: [PATCH] do not notify on portal disabled --- setup-scripts/health-checker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index 42df82ef..8d67e4e1 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -201,9 +201,7 @@ async def check_health(): message = "" force_notify = False - if json_check["disabled"]: - message += "__Portal manually disabled!__ " - elif server_down: + if server_down and json_check["disabled"] == False: message += "__Portal down!!!__ " force_notify = True