Browse Source

Merge "Honor trash_output when not using queue" into stable/stein

tags/10.8.1^0
Zuul 1 week ago
parent
commit
7849f7461d

+ 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

@@ -624,6 +624,9 @@ class AnsiblePlaybookAction(base.TripleOAction):
624 624
                 *command, cwd=self.work_dir,
625 625
                 env_variables=env_variables,
626 626
                 log_errors=processutils.LogErrors.ALL)
627
+            if self.trash_output:
628
+                stdout = ""
629
+                stderr = ""
627 630
             return {"stderr": stderr, "stdout": stdout,
628 631
                     "log_path": os.path.join(self.work_dir, 'ansible.log')}
629 632
         finally:

Loading…
Cancel
Save