From cc1a9cc45d1b1136d214ded4cc5384e863570af4 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 28 Jan 2014 06:59:01 +1100 Subject: [PATCH] BF: match up fail2ban-regex for datedetector/datetemplate changes --- bin/fail2ban-regex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/fail2ban-regex b/bin/fail2ban-regex index cfaa4a894..ccdb7eacf 100755 --- a/bin/fail2ban-regex +++ b/bin/fail2ban-regex @@ -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