canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #02575
[Merge] ~andersson123/autopkgtest-cloud:fix-update-github-jobs into autopkgtest-cloud:master
Tim Andersson has proposed merging ~andersson123/autopkgtest-cloud:fix-update-github-jobs into autopkgtest-cloud:master.
Requested reviews:
Canonical's Ubuntu QA (canonical-ubuntu-qa)
For more details, see:
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/459166
--
Your team Canonical's Ubuntu QA is requested to review the proposed merge of ~andersson123/autopkgtest-cloud:fix-update-github-jobs into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/update-github-jobs b/charms/focal/autopkgtest-web/webcontrol/update-github-jobs
index 6362803..c3dd052 100755
--- a/charms/focal/autopkgtest-web/webcontrol/update-github-jobs
+++ b/charms/focal/autopkgtest-web/webcontrol/update-github-jobs
@@ -130,9 +130,12 @@ def process_job(jobfile):
}
args["marker"] = args["prefix"] + timestamp
query_url = container_url + "?" + urllib.parse.urlencode(args)
+ proxy_handler = urllib.request.ProxyHandler({})
+ opener = urllib.request.build_opener(proxy_handler)
logging.debug("Swift URL query: %s", query_url)
try:
- with urllib.request.urlopen(query_url) as f:
+ # with urllib.request.urlopen(query_url) as f:
+ with opener.open(query_url) as f:
for result in f:
result_url = os.path.join(
container_url, result.strip().decode()
References