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:
|
||||
actions = self._actions
|
||||
revactions = reversed(actions.items())
|
||||
for name, action in revactions:
|
||||
for name, action in reversed(actions.items()):
|
||||
try:
|
||||
action.stop()
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue