From e3d82f6a66537bcef574e0b3871e75dd4c57fe4d Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 20 Jan 2024 15:19:42 +0100 Subject: [PATCH] Remove federationtest from matrix healthcheck --- roles/healthcheck/files/data/matrix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/roles/healthcheck/files/data/matrix b/roles/healthcheck/files/data/matrix index ad1bfd6..f2e4ac9 100755 --- a/roles/healthcheck/files/data/matrix +++ b/roles/healthcheck/files/data/matrix @@ -34,21 +34,12 @@ async def main(): print(e) print("exception during login or sending") - send_ping(False) + send_ping(False, str(e)) sys.exit(1) await client.close() - url = "https://federationtester.matrix.org/api/report?server_name=" \ - + os.environ['MATRIX_SERVER_FEDTESTER'] - resp = requests.get(url) - data = resp.json() # Check the JSON Response Content documentation below - if data["FederationOK"] != True: - send_ping(False) - sys.exit(1) - send_ping(True) sys.exit(0) - asyncio.new_event_loop().run_until_complete(main())