Skip to content

Commit a37236a

Browse files
Eijebongahal
authored andcommitted
Rstrip / from the proxy URL
1 parent 2553167 commit a37236a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/taskgraph/create.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def create_task(session, task_id, label, task_def):
124124
return
125125

126126
logger.info(f"Creating task with taskId {task_id} for {label}")
127-
proxy_url = os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster")
127+
proxy_url = os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster").rstrip(
128+
"/"
129+
)
128130
res = session.put(
129131
f"{proxy_url}/queue/v1/task/{task_id}",
130132
json=task_def,

src/taskgraph/run-task/run-task

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ from pathlib import Path
3939
from threading import Thread
4040
from typing import Optional
4141

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

4444
GITHUB_SSH_FINGERPRINT = (
4545
b"github.com ssh-ed25519 "

0 commit comments

Comments
 (0)