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