From 073e34a77f7c8ce4801567fc5eacee594562d924 Mon Sep 17 00:00:00 2001 From: Ondrej Kupka Date: Fri, 28 Dec 2012 03:19:57 +0100 Subject: [PATCH] Fix the batch mode not printing the output --- salt/cli/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index 6dc76eb759..79d27e12a5 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -46,7 +46,9 @@ class SaltCMD(parsers.SaltCMDOptionParser): if self.options.batch: batch = salt.cli.batch.Batch(self.config) - batch.run() + # Printing the output is already taken care of in run() itself + for res in batch.run(): + pass else: if self.options.timeout <= 0: self.options.timeout = local.opts['timeout']