mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix expr_match usage in salt.utils.check_whitelist_blacklist
This commit is contained in:
parent
c45b92bb4b
commit
14913a4cb4
1 changed files with 2 additions and 2 deletions
|
@ -1153,7 +1153,7 @@ def check_whitelist_blacklist(value, whitelist=None, blacklist=None):
|
|||
if whitelist:
|
||||
try:
|
||||
for expr in whitelist:
|
||||
if expr_match(expr, value):
|
||||
if expr_match(value, expr):
|
||||
in_whitelist = True
|
||||
break
|
||||
except TypeError:
|
||||
|
@ -1165,7 +1165,7 @@ def check_whitelist_blacklist(value, whitelist=None, blacklist=None):
|
|||
if blacklist:
|
||||
try:
|
||||
for expr in blacklist:
|
||||
if expr_match(expr, value):
|
||||
if expr_match(value, expr):
|
||||
in_blacklist = True
|
||||
break
|
||||
except TypeError:
|
||||
|
|
Loading…
Add table
Reference in a new issue