Auto merge of #24681 - servo:jdm-patch-36, r=SimonSapin

Add missing import to docs upload script.
This commit is contained in:
bors-servo 2019-11-07 19:41:26 -05:00 committed by GitHub
commit fc7b880195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,7 +271,7 @@ def upload_docs():
.with_features("taskclusterProxy")
.with_scopes("secrets:get:project/servo/doc.servo.org")
.with_env(PY="""if 1:
import urllib, json
import urllib, json, os
root_url = os.environ["TASKCLUSTER_PROXY_URL"]
url = root_url + "/api/secrets/v1/secret/project/servo/doc.servo.org"
token = json.load(urllib.urlopen(url))["secret"]["token"]