Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > d236c5da97a239a1b6991cfba2865b66 > files > 96

cman-2.0.115-68.el5_6.1.src.rpm

commit 5fae628d12c1c38b1d29a05bf58a2e0c4e19aec7
Author: Marek 'marx' Grac <mgrac@redhat.com>
Date:   Fri Jun 18 16:53:50 2010 +0200

    fence_wti: support non-default TCP ports
    
    WTI do not use standard process to login so it needs special patch
    (based on the code in library)
    
    Resolves: rhbz#572996

diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py
index 292dcaa..51c2b59 100755
--- a/fence/agents/wti/fence_wti.py
+++ b/fence/agents/wti/fence_wti.py
@@ -108,7 +108,9 @@ is running because the connection will block any necessary fencing actions."
 	if 0 == options.has_key("-x"):
 		try:
 			try:
-				conn = fspawn('%s %s' % (TELNET_PATH, options["-a"]))
+				conn = fspawn(TELNET_PATH)
+				conn.send("set binary\n")
+				conn.send("open %s -%s\n"%(options["-a"], options["-u"]))
 			except pexpect.ExceptionPexpect, ex:
 				sys.stderr.write(str(ex) + "\n")
 				sys.stderr.write("Due to limitations, binary dependencies on fence agents "