Skip to content

Commit

Permalink
Rstrip / from the proxy URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Eijebong committed Oct 29, 2024
1 parent 63e2e3e commit 396ef40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/taskgraph/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def create_task(session, task_id, label, task_def):
return

logger.info(f"Creating task with taskId {task_id} for {label}")
proxy_url = os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster")
proxy_url = os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster").rstrip(
"/"
)
res = session.put(
f"{proxy_url}/queue/v1/task/{task_id}",
json=task_def,
Expand Down
2 changes: 1 addition & 1 deletion src/taskgraph/run-task/run-task
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ from pathlib import Path
from threading import Thread
from typing import Optional

SECRET_BASEURL_TPL = "{}/secrets/v1/secret/{{}}".format(os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster"))
SECRET_BASEURL_TPL = "{}/secrets/v1/secret/{{}}".format(os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster").rstrip('/'))

GITHUB_SSH_FINGERPRINT = (
b"github.com ssh-ed25519 "
Expand Down

0 comments on commit 396ef40

Please sign in to comment.