From 08a27a54563cb258e068548ca14e261df2356972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Thu, 1 Feb 2024 12:40:10 +0100 Subject: [PATCH] Attempt to get swift results working properly by using a workaround from security-britney. --- britney2/policies/autopkgtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 546a03c..c5098d6 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -894,7 +894,8 @@ class AutopkgtestPolicy(BasePolicy): # request new results from swift url = os.path.join(swift_url, self.swift_container) - url += '?' + urllib.parse.urlencode(query) + # XXX: Workaround for PS5 swift deployment - container name needs to be suffixed with / + url += '/?' + urllib.parse.urlencode(query) f = None try: f = self.download_retry(url)