mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
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:
parent
0e2b20b714
commit
7c4612386b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user