public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* STABLE2 - [FENCE] Fix #237266 - LPAR/HMC fence agent
@ 2008-08-27 12:59 Marek Grác
0 siblings, 0 replies; only message in thread
From: Marek Grác @ 2008-08-27 12:59 UTC (permalink / raw)
To: cluster-cvs-relay
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-27 12:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-27 12:59 STABLE2 - [FENCE] Fix #237266 - LPAR/HMC fence agent Marek Grác
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).