mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Adds check for engine before adding the additional engine argument
The additional engine argument is only intended to be used with the _check_list_minons engine and shouldn't be added for every other engine.
This commit is contained in:
parent
7d0b20c91e
commit
649c46cc4d
@ -572,8 +572,10 @@ class CkMinions(object):
|
||||
engine_args.append(target_info['delimiter'] or ':')
|
||||
engine_args.append(greedy)
|
||||
|
||||
# ignore missing minions if we exclude them with a 'not'
|
||||
engine_args.append(results and results[-1] == '-')
|
||||
# ignore missing minions for lists if we exclude them with
|
||||
# a 'not'
|
||||
if 'L' == target_info['engine']:
|
||||
engine_args.append(results and results[-1] == '-')
|
||||
_results = engine(*engine_args)
|
||||
results.append(six.text_type(set(_results['minions'])))
|
||||
missing.extend(_results['missing'])
|
||||
|
Loading…
Reference in New Issue
Block a user