From 0a7ef22b8562539cbcff1bc68b9d6b8b65bbbbe0 Mon Sep 17 00:00:00 2001 From: Marek 'marx' Grac Date: Wed, 5 Aug 2015 15:40:52 +0200 Subject: [PATCH 4/4] fencing: Password was awaited twice in some cases when connecting via telnet Resolves:rhbz#1185329 --- fence/agents/lib/fencing.py.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 8b14cf2..fb7b77d 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -1140,7 +1140,7 @@ def fence_login(options, re_login_string=r"(login\s*: )|(Login Name: )|(usernam options["eol"] = "\n" conn.send_eol(options["--username"]) result = conn.log_expect(options, re_pass, int(options["--login-timeout"])) - elif re_pass.search(screen) != None: + elif re_pass.search(screen) == None: conn.log_expect(options, re_pass, int(options["--shell-timeout"])) try: -- 1.9.3