Merge branch 'actionreader-timeout' of https://github.com/kwirk/fail2ban into 0.9

* 'actionreader-timeout' of https://github.com/kwirk/fail2ban:
  BF: Fix for setting of timeout value via actionreader
pull/220/head
Yaroslav Halchenko 2013-05-09 11:39:12 -04:00
commit 810a28f136
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class ActionReader(DefinitionInitConfigReader):
stream.append(head + ["actionunban", self._name, self._opts[opt]])
if self._initOpts:
if "timeout" in self._initOpts:
stream.append(head + ["timeout", self._file, self._opts["timeout"]])
stream.append(head + ["timeout", self._name, self._opts["timeout"]])
# cInfo
for p in self._initOpts:
stream.append(head + ["setcinfo", self._name, p, self._initOpts[p]])