mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
python >= 3.x, local variable 'lastBanTime' reference bug fixed
This commit is contained in:
parent
a4837da899
commit
7d17fb5c6c
1 changed files with 1 additions and 0 deletions
|
|
@ -367,6 +367,7 @@ class BanTimeIncr(unittest.TestCase):
|
|||
restored_tickets[0].setRestored(True)
|
||||
self.assertTrue(restored_tickets[0].getRestored())
|
||||
# increase ban multiple times:
|
||||
lastBanTime = 20
|
||||
for i in xrange(10):
|
||||
ticket.setTime(stime + lastBanTime + 5)
|
||||
banTime = a.incrBanTime(ticket)
|
||||
|
|
|
|||
Loading…
Reference in a new issue