mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add check for glob_match to make sure the tgt is a string
This commit is contained in:
parent
f99ae7679b
commit
0bc4d423bf
@ -1384,6 +1384,9 @@ class Matcher(object):
|
||||
'''
|
||||
Returns true if the passed glob matches the id
|
||||
'''
|
||||
if type(tgt) != str:
|
||||
return False
|
||||
|
||||
return fnmatch.fnmatch(self.opts['id'], tgt)
|
||||
|
||||
def pcre_match(self, tgt):
|
||||
|
Loading…
Reference in New Issue
Block a user