mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #20431 from SmithSamuelM/sam_20150124
Changed test from str to basestring
This commit is contained in:
commit
ef3fd7ce90
@ -2442,7 +2442,7 @@ class Matcher(object):
|
||||
'''
|
||||
Returns true if the passed glob matches the id
|
||||
'''
|
||||
if not isinstance(tgt, str):
|
||||
if not isinstance(tgt, basestring):
|
||||
return False
|
||||
|
||||
return fnmatch.fnmatch(self.opts['id'], tgt)
|
||||
|
Loading…
Reference in New Issue
Block a user