Gitweb:
http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=b8cdfe...
Commit: b8cdfec7e67ca7ef816f0e138b849a0b32bab479
Parent: 08c1e2ab3a725da2e192a245a078f09517256f98
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Wed Jun 18 14:19:02 2014 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Wed Jun 18 14:19:02 2014 +0200
fence_wti: Respect --delay in telnet connection
Previously --delay was respected only in ssh connection because fence_wti uses different
login
mechanism.
Based on: ab73cbc40309f16025669f754811c8e82ea8265b
Resolves: rhbz#1079291
---
fence/agents/wti/fence_wti.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py
index b7c41f3..465bef9 100644
--- a/fence/agents/wti/fence_wti.py
+++ b/fence/agents/wti/fence_wti.py
@@ -123,6 +123,9 @@ is running because the connection will block any necessary fencing
actions."
#####
if 0 == options.has_key("-x"):
try:
+ if options["-o"] in ["off", "reboot"]:
+ time.sleep(int(options["-f"]))
+
try:
conn = fspawn(options, TELNET_PATH)
conn.send("set binary\n")