From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9069 invoked by alias); 16 Mar 2009 10:02:04 -0000 Received: (qmail 8717 invoked by alias); 16 Mar 2009 10:02:03 -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: cluster: STABLE3 - fence_agents: #487501 - Exceptions in fencing agents To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 912fc735805c56669965220209dff1863a66489f X-Git-Newrev: d4f0a9c49b2cc52ce0655a45c500b409eda32945 From: =?utf-8?q?Marek_Gr=C3=A1c?= Message-Id: <20090316100141.6FF7B12032D@lists.fedorahosted.org> Date: Mon, 16 Mar 2009 10:02: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/msg00792.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d4f0a9c49b2cc52ce0655a45c500b409eda32945 Commit: d4f0a9c49b2cc52ce0655a45c500b409eda32945 Parent: 912fc735805c56669965220209dff1863a66489f Author: Marek 'marx' Grac AuthorDate: Mon Mar 16 10:54:32 2009 +0100 Committer: Marek 'marx' Grac CommitterDate: Mon Mar 16 10:54:32 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: