mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #3054 from tchap/print-batch-results
Fix the batch mode not printing the results
This commit is contained in:
commit
843e01a7f4
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user