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: RHEL5 - [FENCE] Fix #448133 - LPAR/HMC fence agent
Date: Wed, 27 Aug 2008 13:00:00 -0000	[thread overview]
Message-ID: <20080827125755.6C3DB120369@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=34db56d4f5ea7428c02b072a742c40ca9c574f1c
Commit:        34db56d4f5ea7428c02b072a742c40ca9c574f1c
Parent:        31331549456cc1418641a6783ad9f5ee7a188d8a
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:55:10 2008 +0200

[FENCE] Fix #448133 - 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 b2d722f..aeb6a9a 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:59 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=20080827125755.6C3DB120369@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).