DOC: Revert change to fail2ban-refex from 183cfa6

pull/173/head
Steven Hiscocks 2013-04-15 22:14:00 +01:00
parent 183cfa6e00
commit 1756f709da
1 changed files with 7 additions and 1 deletions

View File

@ -136,7 +136,13 @@ class Fail2banRegex:
elif opt[0] in ["-v", "--verbose"]:
self.__verbose = True
elif opt[0] in ["-l", "--maxlines"]:
self.__filter.setMaxLines(opt[1])
try:
self.__filter.setMaxLines(int(opt[1]))
except ValueError:
print "Invlaid value for maxlines: %s" % (
opt[1])
fail2banRegex.dispUsage()
sys.exit(-1)
#@staticmethod
def logIsFile(value):