mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fallback to docker-worker’s URL when $TASKCLUSTER_PROXY_URL is missing
This commit is contained in:
parent
af077f8cf7
commit
599c015b23
1 changed files with 5 additions and 1 deletions
|
@ -546,7 +546,11 @@ class PackageCommands(CommandBase):
|
||||||
import boto3
|
import boto3
|
||||||
|
|
||||||
def get_taskcluster_secret(name):
|
def get_taskcluster_secret(name):
|
||||||
url = os.environ["TASKCLUSTER_PROXY_URL"] + "/secrets/v1/secret/project/servo/" + name
|
url = (
|
||||||
|
os.environ.get("TASKCLUSTER_PROXY_URL", "http://taskcluster") +
|
||||||
|
"/secrets/v1/secret/project/servo/" +
|
||||||
|
name
|
||||||
|
)
|
||||||
return json.load(urllib.urlopen(url))["secret"]
|
return json.load(urllib.urlopen(url))["secret"]
|
||||||
|
|
||||||
def get_s3_secret():
|
def get_s3_secret():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue