mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #40615 from rallytime/fix-39863
Call out to _pki_minions() once, rather than in a loop in _check_list_minions()
This commit is contained in:
commit
b6cf948afe
@ -207,7 +207,8 @@ class CkMinions(object):
|
||||
'''
|
||||
if isinstance(expr, six.string_types):
|
||||
expr = [m for m in expr.split(',') if m]
|
||||
return [x for x in expr if x in self._pki_minions()]
|
||||
minions = self._pki_minions()
|
||||
return [x for x in expr if x in minions]
|
||||
|
||||
def _check_pcre_minions(self, expr, greedy): # pylint: disable=unused-argument
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user