Skip to content
Permalink
Browse files

Fallback to docker-worker’s URL when $TASKCLUSTER_PROXY_URL is missing

  • Loading branch information...
SimonSapin committed May 6, 2019
1 parent af077f8 commit 599c015b23680d6e9ab986594c71f80d4d8ba226
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/servo/package_commands.py
@@ -546,7 +546,11 @@ def upload_nightly(self, platform, secret_from_taskcluster):
import boto3

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"]

def get_s3_secret():

0 comments on commit 599c015

Please sign in to comment.
You can’t perform that action at this time.