mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Add check for bad not eval in compound matcher
This commit is contained in:
parent
cf06b34125
commit
193a64e33e
@ -1132,6 +1132,13 @@ class Matcher(object):
|
||||
elif match in opers:
|
||||
# We didn't match a target, so append a boolean operator or
|
||||
# subexpression
|
||||
if match == 'not':
|
||||
if results[-1] == 'and':
|
||||
pass
|
||||
elif results[-1] == 'or':
|
||||
pass
|
||||
else:
|
||||
results.append('and')
|
||||
results.append(match)
|
||||
else:
|
||||
# The match is not explicitly defined, evaluate it as a glob
|
||||
|
Loading…
Reference in New Issue
Block a user