From d406c170e956ec323e6ea106d36bc4bdd4b251d3 Mon Sep 17 00:00:00 2001 From: Mike Place Date: Tue, 30 Dec 2014 14:52:56 -0700 Subject: [PATCH] Add expr form logic --- salt/cli/batch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/salt/cli/batch.py b/salt/cli/batch.py index 9405c7c30f..861edde141 100644 --- a/salt/cli/batch.py +++ b/salt/cli/batch.py @@ -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): '''