mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #34654 from techhat/checkevent
Switch Thorium check over to expr_match
This commit is contained in:
commit
46b7d46ff1
@ -7,7 +7,7 @@ of having a command execution get gated by a check state via a requisite.
|
||||
'''
|
||||
# import python libs
|
||||
from __future__ import absolute_import
|
||||
import fnmatch
|
||||
import salt.utils
|
||||
|
||||
|
||||
def gt(name, value):
|
||||
@ -162,7 +162,9 @@ def event(name):
|
||||
'changes': {},
|
||||
'comment': '',
|
||||
'result': False}
|
||||
|
||||
for event in __events__:
|
||||
if fnmatch.fnmatch(event['tag'], name):
|
||||
if salt.utils.expr_match(event['tag'], name):
|
||||
ret['result'] = True
|
||||
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user