From a11bba0e46f7187badbf5c9d8f16a334e45adfd4 Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Mon, 27 Feb 2023 08:33:18 +0100 Subject: [PATCH] Do not send to intermittent dashboard if secret is empty --- tests/wpt/servowpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wpt/servowpt.py b/tests/wpt/servowpt.py index b74029ac346..bc4bceca575 100644 --- a/tests/wpt/servowpt.py +++ b/tests/wpt/servowpt.py @@ -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}"