Fix the --print-all-{missed,ignored} options.

Previously, fail2ban-regex always printed both regardless of whether
those options were present or not.

This commit duplicates the patch I submitted at
https://sourceforge.net/p/fail2ban/patches/25/
pull/644/head
Hank Leininger 2014-03-13 22:47:28 -04:00
parent 415f187644
commit 27dafea281
Failed to extract signature
1 changed files with 4 additions and 2 deletions

View File

@ -354,8 +354,10 @@ class Fail2banRegex(object):
print "\nLines: %s" % self._line_stats
self.printLines('ignored')
self.printLines('missed')
if self._print_all_ignored:
self.printLines('ignored')
if self._print_all_missed:
self.printLines('missed')
return True