From 7d2fb79b5b03abdb7b0717b81c63c4906bb7c169 Mon Sep 17 00:00:00 2001 From: Ajay Kumar Date: Wed, 28 Apr 2021 16:34:26 +0530 Subject: Allow printing playbook output to console MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User can specify quiet: False in "testcases.yaml" if he wants to print the output on console. Co-Authored-By: Cédric Ollivier Signed-off-by: Ajay kumar Change-Id: I30fa21bdcc2ed97757cd3c0b4720f9413466833f Signed-off-by: Cédric Ollivier --- xtesting/core/ansible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xtesting/core/ansible.py') diff --git a/xtesting/core/ansible.py b/xtesting/core/ansible.py index 21148a18..7ccace9f 100644 --- a/xtesting/core/ansible.py +++ b/xtesting/core/ansible.py @@ -54,7 +54,8 @@ class Ansible(testcase.TestCase): try: if not os.path.exists(self.res_dir): os.makedirs(self.res_dir) - kwargs["quiet"] = True + if "quiet" not in kwargs: + kwargs["quiet"] = True kwargs["artifact_dir"] = self.res_dir runner = ansible_runner.run(**kwargs) self.details = runner.stats -- cgit 1.2.3-korg