RHEL5 - [FENCE] Fix #448133 - LPAR/HMC fence agent
Marek Grác
marx@fedoraproject.org
Wed Aug 27 13:00:00 GMT 2008
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
More information about the Cluster-cvs
mailing list