commit | 0aaa5d97756d7f8b536a43f04f516ac2b3151165 | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@redhat.com> | Thu Jan 30 17:35:17 2020 -0800 |
committer | James E. Blair <jeblair@redhat.com> | Thu Jan 30 17:35:17 2020 -0800 |
tree | 6101aeb7f5febf4b051b78f23e4bd2de1f43ba41 | |
parent | 673ac6342f58808553c7ad21502253a7fff94e41 [diff] |
Fix cors settings again The previous change made 2 cors rules, not one. Change-Id: I53295711f1bd0077f34a28d2665a60f630f58de8
diff --git a/roles/upload-logs-gcs/library/zuul_google_storage_upload.py b/roles/upload-logs-gcs/library/zuul_google_storage_upload.py index f658113..e5a2143 100755 --- a/roles/upload-logs-gcs/library/zuul_google_storage_upload.py +++ b/roles/upload-logs-gcs/library/zuul_google_storage_upload.py
@@ -627,10 +627,10 @@ self.prefix = prefix or '' self.bucket = client.bucket(container) - cors = [ - {'method': ['GET', 'HEAD']}, - {'origin': ['*']} - ] + cors = [{ + 'method': ['GET', 'HEAD'], + 'origin': ['*'] + }] self.bucket.cors = cors self.bucket.website = {"mainPageSuffix": "index.html"} self.bucket.update()