Fix: Incorrect indent skips calling deploy_s3() 83/68683/1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 2 Sep 2021 02:55:57 +0000 (12:55 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 2 Sep 2021 02:59:33 +0000 (12:59 +1000)
When Unix style glob patterns are passed through the CLI option
the deploy_s3() function skips the step to push logs to the S3 bucket.

Issue-Id: RELENG-3866
Change-Id: I58d6ef8dab41213fdbc431294ddd21854adc60dc
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
lftools/cli/deploy.py
releasenotes/notes/fix-deploy-s3-indent-76a7ad7eb5ca3c21.yaml [new file with mode: 0644]

index ff01576..27b1b19 100644 (file)
@@ -148,7 +148,7 @@ def s3(ctx, s3_bucket, s3_path, build_url, workspace, pattern):
     """Deploy logs and archives to a S3 bucket."""
     if not pattern:
         pattern = None
-        deploy_sys.deploy_s3(s3_bucket, s3_path, build_url, workspace, pattern)
+    deploy_sys.deploy_s3(s3_bucket, s3_path, build_url, workspace, pattern)
     log.info("Logs upload to S3 complete.")
 
 
diff --git a/releasenotes/notes/fix-deploy-s3-indent-76a7ad7eb5ca3c21.yaml b/releasenotes/notes/fix-deploy-s3-indent-76a7ad7eb5ca3c21.yaml
new file mode 100644 (file)
index 0000000..c2accb9
--- /dev/null
@@ -0,0 +1,7 @@
+---
+fixes:
+  - |
+    Fix: Indent line correctly to call deploy s3 function.
+
+    When Unix style glob patterns are passed through the CLI option
+    the deploy_s3() function skips the step to push logs to the S3 bucket.