Fix: typo in deploy.py 97/68597/1 v0.35.9
authorpmikus <peter.mikus@protonmail.ch>
Mon, 23 Aug 2021 10:37:58 +0000 (10:37 +0000)
committerpmikus <peter.mikus@protonmail.ch>
Mon, 23 Aug 2021 10:37:58 +0000 (10:37 +0000)
Typo error in xml mimetype deploy to S3 storage. Thais patch remove the
extra sign to correctly map mimetype to content-type.

Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Ia88ac75f483b31312ae72cc104021ab9efda6455

lftools/deploy.py
releasenotes/notes/fix-deploy-xml-c99387e7b5c4622e.yaml [new file with mode: 0644]

index 183ccdd..c59640b 100755 (executable)
@@ -431,7 +431,7 @@ def deploy_s3(s3_bucket, s3_path, build_url, workspace, pattern=None):
         extra_args = {"ContentType": "text/plain"}
         text_html_extra_args = {"ContentType": "text/html", "ContentEncoding": mimetypes.guess_type(file)[1]}
         text_plain_extra_args = {"ContentType": "text/plain", "ContentEncoding": mimetypes.guess_type(file)[1]}
-        app_xml_extra_args = {"ContentType": "application/xml'", "ContentEncoding": mimetypes.guess_type(file)[1]}
+        app_xml_extra_args = {"ContentType": "application/xml", "ContentEncoding": mimetypes.guess_type(file)[1]}
         if file == "_tmpfile":
             for dir in (logs_dir, silo_dir, jenkins_node_dir):
                 try:
diff --git a/releasenotes/notes/fix-deploy-xml-c99387e7b5c4622e.yaml b/releasenotes/notes/fix-deploy-xml-c99387e7b5c4622e.yaml
new file mode 100644 (file)
index 0000000..b048abc
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Typo error in xml mimetype deploy to S3 storage. Thais patch remove the
+    extra sign to correctly map mimetype to content-type.