From af2de7ff2fe7ad8a306a8963467a54bdbae7f3a4 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 22 Jan 2018 21:08:39 -0500 Subject: [PATCH] RF: COND_FAMILIES - use tuple no need for a dict where tuple would be preferable (deterministic order) --- fail2ban/server/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/server/action.py b/fail2ban/server/action.py index 31475d72f..f06e28c0e 100644 --- a/fail2ban/server/action.py +++ b/fail2ban/server/action.py @@ -383,7 +383,7 @@ class CommandAction(ActionBase): except ValueError as e: raise RuntimeError("Error %s action %s/%s: %r" % (operation, self._jail, self._name, e)) - COND_FAMILIES = {'inet4':1, 'inet6':1} + COND_FAMILIES = ('inet4', 'inet6') @property def _startOnDemand(self):