diff --git a/salt/matchers/cache_match.py b/salt/matchers/cache_match.py index ce2126603d..1c6fbd4833 100644 --- a/salt/matchers/cache_match.py +++ b/salt/matchers/cache_match.py @@ -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, diff --git a/salt/matchers/compound_pillar_exact_match.py b/salt/matchers/compound_pillar_exact_match.py index 62dd17451a..59f5f3b9d2 100644 --- a/salt/matchers/compound_pillar_exact_match.py +++ b/salt/matchers/compound_pillar_exact_match.py @@ -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)