This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: RHEL4 - fence_lpar: #485094 - properly report status onsystems in Open Firmware


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8552819f297fa5821d01917878b253c0f42db046
Commit:        8552819f297fa5821d01917878b253c0f42db046
Parent:        429d9988ee05e61697d82995b25168c14c9cfdaf
Author:        Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate:    Wed Feb 11 17:03:14 2009 +0100
Committer:     Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Wed Feb 11 17:03:14 2009 +0100

fence_lpar: #485094 - properly report status on systems in Open Firmware

---
 fence/agents/lpar/fence_lpar.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py
index aeb6a9a..33ab92b 100755
--- a/fence/agents/lpar/fence_lpar.py
+++ b/fence/agents/lpar/fence_lpar.py
@@ -34,7 +34,7 @@ def get_power_status(conn, options):
 
 	##
 	## Transformation to standard ON/OFF status if possible
-	if status == "Running":
+	if status in ["Running", "Open Firmware", "Shutting Down"]:
 		status = "on"
 	else:
 		status = "off"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]