When going through the API, selected_target_option is always 'None'. That brakes grains-based minion-discovery for the batch run when running through the API. The expr_form is always set, so we can default to that safely instead of glob.

This commit is contained in:
Volker Schwicking 2013-01-31 22:19:10 +01:00 committed by Volker Schwicking
parent 0e2b20b714
commit 7c4612386b

View File

@ -36,7 +36,7 @@ class Batch(object):
if selected_target_option is not None:
args.append(selected_target_option)
else:
args.append('glob')
args.append(self.opts['expr_form'])
fret = []
for ret in self.local.cmd_iter(*args):