FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 03-16-2011, 12:57 PM
Lon Hohberger
 
Default fence_wti: Unable to parse output when splitted into several screens (2/2)

On Wed, Mar 16, 2011 at 02:06:19PM +0100, Fabio M. Di Nitto wrote:
> From: Marek 'marx' Grac <mgrac@redhat.com>
>
> 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"+"
")
>
> 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"+"
")
> result = conn.log_expect(options, re_all, int(options["-Y"]))
> listing = conn.before
> if result == (len(re_all) - 1):

Ack

--
Lon Hohberger - Red Hat, Inc.
 

Thread Tools




All times are GMT. The time now is 10:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org