Browse Source

Merge "Honor trash_output when not using queue"

tags/11.2.0
Zuul 1 week ago
parent
commit
c2883a8c0c

+ 6
- 0
releasenotes/notes/honor_trash_output_when_not_using_queue-f7c5a3051f5b90cc.yaml View File

@@ -0,0 +1,6 @@
1
+---
2
+fixes:
3
+  - Previously, trash_output was not honored if a queue was not being used to
4
+    post messages.  The behavior has changed so that trash_output will be
5
+    honored even if a queue is not being used, and all stdout/stderr will be
6
+    discarded.

+ 3
- 0
tripleo_common/actions/ansible.py View File

@@ -640,6 +640,9 @@ class AnsiblePlaybookAction(base.TripleOAction):
640 640
                 *command, cwd=self.work_dir,
641 641
                 env_variables=env_variables,
642 642
                 log_errors=processutils.LogErrors.ALL)
643
+            if self.trash_output:
644
+                stdout = ""
645
+                stderr = ""
643 646
             return {"stderr": stderr, "stdout": stdout,
644 647
                     "log_path": os.path.join(self.work_dir, 'ansible.log')}
645 648
         finally:

Loading…
Cancel
Save