Skip to content

Commit

Permalink
ran format
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcottner committed Jun 26, 2024
1 parent b145249 commit fedadc7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions telescope/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,7 @@ async def heartbeat(request):
else f"missing features {', '.join(missing_features)}"
)
bz_ping = await request.app["telescope.tracker"].ping()
checks["bugzilla"] = (
"ok"
if bz_ping
else "Bugzilla ping failed"
)
checks["bugzilla"] = "ok" if bz_ping else "Bugzilla ping failed"
status = 200 if all(v == "ok" for v in checks.values()) else 503
return web.json_response(checks, status=status)

Expand Down

0 comments on commit fedadc7

Please sign in to comment.