mirror of https://github.com/fail2ban/fail2ban
no extra var needed for iterator
parent
0c3951b864
commit
aceae84be2
|
@ -305,8 +305,7 @@ class Actions(JailThread, Mapping):
|
||||||
"""
|
"""
|
||||||
if actions is None:
|
if actions is None:
|
||||||
actions = self._actions
|
actions = self._actions
|
||||||
revactions = reversed(actions.items())
|
for name, action in reversed(actions.items()):
|
||||||
for name, action in revactions:
|
|
||||||
try:
|
try:
|
||||||
action.stop()
|
action.stop()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue