mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Do not send to intermittent dashboard if secret is empty
This commit is contained in:
parent
332eeb3bbe
commit
a11bba0e46
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ class TrackerDashboardFilter():
|
|||
self.headers = {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
if TRACKER_DASHBOARD_SECRET_ENV_VAR in os.environ:
|
||||
if TRACKER_DASHBOARD_SECRET_ENV_VAR in os.environ and os.environ[TRACKER_DASHBOARD_SECRET_ENV_VAR]:
|
||||
self.url = f"{base_url}/dashboard/attempts"
|
||||
secret = os.environ[TRACKER_DASHBOARD_SECRET_ENV_VAR]
|
||||
self.headers["Authorization"] = f"Bearer {secret}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue