public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Marek Grác" <marx@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: STABLE2 - [FENCE] Fix #237266 - LPAR/HMC fence agent
Date: Wed, 27 Aug 2008 12:59:00 -0000	[thread overview]
Message-ID: <20080827125529.5CA83120369@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=672db2d7e03d61f4f64a51fdbde4e887054e7839
Commit:        672db2d7e03d61f4f64a51fdbde4e887054e7839
Parent:        c164f9dc1298a25af7a7398313a64b5e88a8280e
Author:        Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate:    Wed Aug 27 14:37:31 2008 +0200
Committer:     Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Wed Aug 27 14:52:47 2008 +0200

[FENCE] Fix #237266 - LPAR/HMC fence agent

Minor fix (thanks to brking@us.ibm.com) in get_power_status(). If the state is
not 'Running' then it is considered off, originally function returns undefined
value in specific cases (like panic on machine - 'Error').
---
 fence/agents/lpar/fence_lpar.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
index 2c343a3..8b81dbb 100755
--- a/fence/agents/lpar/fence_lpar.py
+++ b/fence/agents/lpar/fence_lpar.py
@@ -36,8 +36,7 @@ def get_power_status(conn, options):
 	## Transformation to standard ON/OFF status if possible
 	if status == "Running":
 		status = "on"
-
-	if status == "Not Activated":
+	else:
 		status = "off"
 
 	return status


                 reply	other threads:[~2008-08-27 12:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080827125529.5CA83120369@lists.fedorahosted.org \
    --to=marx@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).