Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 893b4547bb5f5eb61d2f3af4281e5a38 > files > 15

cman-2.0.115-96.el5_8.1.src.rpm

commit 1a961801928dd0f79991e5bf0e81483aeaf7351a
Author: Marek 'marx' Grac <mgrac@redhat.com>
Date:   Mon Aug 15 09:35:11 2011 +0200

    fence_drac5: drac5 firmware does not close ssh session correctly
    
    Attempt to close connection right after sending 'exit' command does
    not close session correctly.
    
    Resolves: rhbz#718924

diff --git a/fence/agents/drac/fence_drac5.py b/fence/agents/drac/fence_drac5.py
index 5e72e42..f3102cd 100644
--- a/fence/agents/drac/fence_drac5.py
+++ b/fence/agents/drac/fence_drac5.py
@@ -12,7 +12,7 @@
 ## @note: drac_version was removed
 #####
 
-import sys, re, pexpect, exceptions
+import sys, re, pexpect, exceptions, time
 sys.path.append("/usr/lib/fence")
 from fencing import *
 
@@ -134,6 +134,7 @@ By default, the telnet interface is not  enabled."
 	######
 	try:
 		conn.sendline("exit")
+		time.sleep(1)
 		conn.close()
 	except exceptions.OSError:
 		pass