BF: match up fail2ban-regex for datedetector/datetemplate changes

pull/599/head
Daniel Black 2014-01-28 06:59:01 +11:00
parent a749a2780e
commit cc1a9cc45d
1 changed files with 3 additions and 3 deletions

View File

@ -438,10 +438,10 @@ class Fail2banRegex(object):
if self._filter.dateDetector is not None:
print "\nDate template hits:"
out = []
for template in self._filter.dateDetector.getTemplates():
if self._verbose or template.getHits():
for template in self._filter.dateDetector.templates:
if self._verbose or template.hits:
out.append("[%d] %s" % (
template.getHits(), template.getName()))
template.hits, template.name))
pprint_list(out, "[# of hits] date format")
print "\nLines: %s" % self._line_stats