From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26156 invoked by alias); 16 Mar 2009 09:47:23 -0000 Received: (qmail 25972 invoked by alias); 16 Mar 2009 09:47:22 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: fence-agents: master - fence_agents: #487501 - Exceptions in fencing agents To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: fence-agents.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 39b9aad2b1f0a03738f72dc1c100dc88e5c66d71 X-Git-Newrev: 15f6d084bb714086348d21f4ea84eebc6250c5a8 From: =?utf-8?q?Marek_Gr=C3=A1c?= Message-Id: <20090316094702.D514412032D@lists.fedorahosted.org> Date: Mon, 16 Mar 2009 09:47:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00791.txt.bz2 Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=15f6d084bb714086348d21f4ea84eebc6250c5a8 Commit: 15f6d084bb714086348d21f4ea84eebc6250c5a8 Parent: 39b9aad2b1f0a03738f72dc1c100dc88e5c66d71 Author: Marek 'marx' Grac AuthorDate: Mon Mar 16 10:44:34 2009 +0100 Committer: Marek 'marx' Grac CommitterDate: Mon Mar 16 10:44:34 2009 +0100 fence_agents: #487501 - Exceptions in fencing agents Fixing previous patch --- fence/agents/apc/fence_apc.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fence/agents/apc/fence_apc.py b/fence/agents/apc/fence_apc.py index 6707787..46e992f 100755 --- a/fence/agents/apc/fence_apc.py +++ b/fence/agents/apc/fence_apc.py @@ -68,7 +68,7 @@ def get_power_status(conn, options): conn.send(options["-s"]+"\r\n") while True: - exp_result == conn.log_expect(options, [ options["-c"], "Press " ], SHELL_TIMEOUT) + exp_result = conn.log_expect(options, [ options["-c"], "Press " ], SHELL_TIMEOUT) lines = conn.before.split("\n"); show_re = re.compile('^\s*(\d+)- (.*?)\s+(ON|OFF)\s*$') for x in lines: