Fix match issue in the matcher class

This commit is contained in:
Thomas S Hatch 2011-05-28 21:13:56 -06:00
parent b3e7fb1886
commit 51553b4fca

View file

@ -282,7 +282,7 @@ class Matcher(object):
if item.has_key('match'):
matcher = item['match']
if hasattr(self, matcher + '_match'):
return getattr(self, matcher)
return getattr(self, matcher + '_match')
else:
log.error('Attempting to match with unknown matcher: %s', matcher)
return False