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())