From 89f2dbb97bca0b7c46324e17d218d266faa3c18d Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 11 Jul 2017 14:01:42 +0200 Subject: [PATCH] small bug fix (missing `-` by option `--timeout`, wrong module reference) --- fail2ban/client/fail2bancmdline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fail2ban/client/fail2bancmdline.py b/fail2ban/client/fail2bancmdline.py index a9387bc6..3a3cedcd 100644 --- a/fail2ban/client/fail2bancmdline.py +++ b/fail2ban/client/fail2bancmdline.py @@ -155,8 +155,8 @@ class Fail2banCmdLine(): self._conf["background"] = False elif o == "--async": self._conf["async"] = True - elif o == "-timeout": - from ..mytime import MyTime + elif o == "--timeout": + from ..server.mytime import MyTime self._conf["timeout"] = MyTime.str2seconds(opt[1]) elif o in ["-h", "--help"]: self.dispUsage()