saltstack/salt — pull request #3054 by tchap (2012-12-28 02:26:27+00:00)
Title: Fix the batch mode not printing the results

I was a bit surprised that executing `salt -b 2 '*' test.ping` was not showing any results, so I researched a bit and discovered that there is in fact an iterator returned that is not being iterated over, hence the main function is not executed.

Output before the change:
```
# salt -b 2 '*' test.ping
m1 Detected for this batch run
m2 Detected for this batch run
m3 Detected for this batch run
m4 Detected for this batch run
```

Output after the change:
```
# salt -b 2 '*' test.ping
m1 Detected for this batch run
m2 Detected for this batch run
m3 Detected for this batch run
m4 Detected for this batch run

Executing run on ['m4', 'm3']

m3: True
m4: True

Executing run on ['m2', 'm1']

m1: True
m2: True
```

I made up the names, but otherwise the output is what I saw.