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:
|
if actions is None:
|
||||||
actions = self._actions
|
actions = self._actions
|
||||||
revactions = actions.items()
|
revactions = reversed(actions.items())
|
||||||
revactions.reverse()
|
|
||||||
for name, action in revactions:
|
for name, action in revactions:
|
||||||
try:
|
try:
|
||||||
action.stop()
|
action.stop()
|
||||||
|
|
Loading…
Reference in New Issue