mirror of https://github.com/fail2ban/fail2ban
Merge pull request #3330 from tomers/reverse-in-a-single-line
Reverse in a single linepull/3336/head
commit
92d5455bdd
|
@ -305,9 +305,7 @@ class Actions(JailThread, Mapping):
|
|||
"""
|
||||
if actions is None:
|
||||
actions = self._actions
|
||||
revactions = actions.items()
|
||||
revactions.reverse()
|
||||
for name, action in revactions:
|
||||
for name, action in reversed(actions.items()):
|
||||
try:
|
||||
action.stop()
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue