This commit is contained in:
C. R. Oldham 2018-09-18 11:16:27 -06:00
parent efb8abe906
commit 8941245800
No known key found for this signature in database
GPG Key ID: 336DDBE4E260935A
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ def mmatch(expr,
If 'greedy' return accepted minions that matched by the condition or absent in the cache.
If not 'greedy' return the only minions have cache data and matched by the condition.
'''
ckminions = salt.utils.minions.CkMinions()
ckminions = salt.utils.minions.CkMinions(__opts__)
return ckminions._check_cache_minions(expr, delimiter, greedy,
search_type, regex_match=regex_match,

View File

@ -18,6 +18,6 @@ def mmatch(expr, delimiter, greedy):
'''
Return the minions found by looking via pillar
'''
ckminions = salt.utils.minions.CkMinions()
ckminions = salt.utils.minions.CkMinions(__opts__)
return ckminions._check_compound_minions(expr, delimiter, greedy,
exact_match=True)
pillar_exact=True)