mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add expr form logic
This commit is contained in:
parent
d4d4a1236f
commit
d406c170e9
@ -34,7 +34,12 @@ class Batch(object):
|
||||
Return a list of minions to use for the batch run
|
||||
'''
|
||||
ckminions = salt.utils.minions.CkMinions(self.opts)
|
||||
return ckminions.check_minions(self.opts['tgt'])
|
||||
selected_target_option = self.opts.get('selected_target_option', None)
|
||||
if selected_target_option is not None:
|
||||
expr_form = selected_target_option
|
||||
else:
|
||||
expr_form = self.opts.get('expr_form', 'glob')
|
||||
return ckminions.check_minions(self.opts['tgt'], expr_form=expr_form)
|
||||
|
||||
def get_bnum(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user