Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 8a4b94c64a858b076de4772e5493efd2fe628b4e
Parent: 787770656ed17759a11c824016ff07ecb992ffff
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Thu Sep 15 10:54:24 2011 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Thu Sep 15 10:54:24 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
---
fence/agents/drac/fence_drac5.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fence/agents/drac/fence_drac5.py b/fence/agents/drac/fence_drac5.py
index fc42f89..23cd7ca 100755
--- 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