mirror of https://github.com/fail2ban/fail2ban
reverse in a single line
parent
3c22ae161c
commit
0c3951b864
|
@ -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 New Issue