Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 517c34c060d30e7467e316e96f389ced0c703ef1
Parent: b1dc0488fadd12866edd79433e52be33e8b7fd80
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Feb 21 20:55:30 2011 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Wed Mar 16 14:44:08 2011 +0100
fence_wti: Unable to parse output when splitted into several screens (2/2)
Minor changes to previous patch. Power ON/OFF now works as expected
Resolves: rhbz#679160
---
fence/agents/wti/fence_wti.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py
index b980d41..c742e71 100755
--- a/fence/agents/wti/fence_wti.py
+++ b/fence/agents/wti/fence_wti.py
@@ -29,13 +29,12 @@ def get_power_status(conn, options):
conn.send("/S"+"\r\n")
if isinstance(options["-c"], list):
- re_all = options["-c"]
+ re_all = list(options["-c"])
else:
re_all = [options["-c"]]
re_next = re.compile("Enter: ", re.IGNORECASE)
re_all.append(re_next)
- conn.send("/S"+"\r\n")
result = conn.log_expect(options, re_all, int(options["-Y"]))
listing = conn.before
if result == (len(re_all) - 1):