Add check for glob_match to make sure the tgt is a string

This commit is contained in:
Thomas Jackson 2013-08-26 20:49:55 -07:00
parent f99ae7679b
commit 0bc4d423bf

View File

@ -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):