mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
actions: provide <bantime> as integer value (for actions expecting timeout parameters)
This commit is contained in:
parent
c024c93ec6
commit
ca49f2c71c
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ class Actions(JailThread, Mapping):
|
|||
def _getBanTime(self):
|
||||
btime = self.__ticket.getBanTime()
|
||||
if btime is None: btime = self.__jail.actions.getBanTime()
|
||||
return btime
|
||||
return int(btime)
|
||||
|
||||
def _mi4ip(self, overalljails=False):
|
||||
"""Gets bans merged once, a helper for lambda(s), prevents stop of executing action by any exception inside.
|
||||
|
|
|
|||
Loading…
Reference in a new issue