From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Wed, 16 Mar 2011 14:06:19 +0100 Subject: [Cluster-devel] [PATCH 2/2] fence_wti: Unable to parse output when splitted into several screens (2/2) In-Reply-To: <1300280779-16056-1-git-send-email-fdinitto@redhat.com> References: <1300280779-16056-1-git-send-email-fdinitto@redhat.com> Message-ID: <1300280779-16056-2-git-send-email-fdinitto@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Marek 'marx' Grac Minor changes to previous patch. Power ON/OFF now works as expected Resolves: rhbz#678522 --- 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 d05676b..8caa4c2 100644 --- a/fence/agents/wti/fence_wti.py +++ b/fence/agents/wti/fence_wti.py @@ -28,13 +28,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): -- 1.7.4