Merge pull request #3054 from tchap/print-batch-results

Fix the batch mode not printing the results
This commit is contained in:
Thomas S Hatch 2012-12-27 19:27:30 -08:00
commit 843e01a7f4

View File

@ -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']