mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
reverse in a single line
This commit is contained in:
parent
3c22ae161c
commit
0c3951b864
1 changed files with 1 additions and 2 deletions
|
|
@ -305,8 +305,7 @@ class Actions(JailThread, Mapping):
|
|||
"""
|
||||
if actions is None:
|
||||
actions = self._actions
|
||||
revactions = actions.items()
|
||||
revactions.reverse()
|
||||
revactions = reversed(actions.items())
|
||||
for name, action in revactions:
|
||||
try:
|
||||
action.stop()
|
||||
|
|
|
|||
Loading…
Reference in a new issue