Blame SOURCES/bz1185329-fence_rsa.patch

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