mirror of https://github.com/fail2ban/fail2ban
Merge pull request #2768 from TorontoMedia/patch
Remove duplicate method and rename invalid parameterpull/2842/head
commit
57caf8ec90
|
@ -59,10 +59,6 @@ class FailManager:
|
|||
with self.__lock:
|
||||
return len(self.__failList), sum([f.getRetry() for f in self.__failList.values()])
|
||||
|
||||
def getFailTotal(self):
|
||||
with self.__lock:
|
||||
return self.__failTotal
|
||||
|
||||
def setMaxRetry(self, value):
|
||||
self.__maxRetry = value
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ class ObserverThread(JailThread):
|
|||
except KeyError:
|
||||
raise KeyError("Invalid event index : %s" % i)
|
||||
|
||||
def __delitem__(self, name):
|
||||
def __delitem__(self, i):
|
||||
try:
|
||||
del self._queue[i]
|
||||
except KeyError:
|
||||
|
|
Loading…
Reference in New Issue