Tim Andersson has proposed merging 
~andersson123/autopkgtest-cloud:d-a-r-traceback 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/475006

Fix a small traceback in the download-all-results script. It was exiting due to 
trying to index a list with length 0.
-- 
Your team Canonical's Ubuntu QA is requested to review the proposed merge of 
~andersson123/autopkgtest-cloud:d-a-r-traceback into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/download-all-results b/charms/focal/autopkgtest-web/webcontrol/download-all-results
index 4d6a807..6fe1975 100755
--- a/charms/focal/autopkgtest-web/webcontrol/download-all-results
+++ b/charms/focal/autopkgtest-web/webcontrol/download-all-results
@@ -201,6 +201,8 @@ def fetch_container(release, swift_conn):
             known_results = list_remote_container(
                 container_name, swift_conn, marker
             )
+            if len(known_results.keys()) < 1:
+                return
             marker = known_results[list(known_results.keys())[-1]]
             if last_marker == marker:
                 return
-- 
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to     : canonical-ubuntu-qa@lists.launchpad.net
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help   : https://help.launchpad.net/ListHelp

Reply via email to