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()