mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
python3.6 compatibility fix
This commit is contained in:
parent
ac7be38dbe
commit
40837754c9
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ class Actions(JailThread, Mapping):
|
|||
# reload actions after all parameters set via stream:
|
||||
for name, initOpts in self._reload_actions.iteritems():
|
||||
if name in self._actions:
|
||||
self._actions[name].reload(**initOpts if initOpts else {})
|
||||
self._actions[name].reload(**(initOpts if initOpts else {}))
|
||||
# remove obsolete actions (untouched by reload process):
|
||||
delacts = OrderedDict((name, action) for name, action in self._actions.iteritems()
|
||||
if name not in self._reload_actions)
|
||||
|
|
|
|||
Loading…
Reference in a new issue