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:
Mike Place 2017-04-10 16:22:17 -06:00 committed by GitHub
commit b6cf948afe

View File

@ -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
'''