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] Fix #484910 - fence_apc_snmp: invalid statusoutletStatusOff


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=27e2be9704af2d3032af0ce59894e443166863dd
Commit:        27e2be9704af2d3032af0ce59894e443166863dd
Parent:        e253ffddacd851318cacf777a0d95bee757ebd1e
Author:        Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate:    Tue Feb 10 18:24:11 2009 +0100
Committer:     Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Tue Feb 10 18:24:11 2009 +0100

[FENCE] Fix #484910 -  fence_apc_snmp: invalid status outletStatusOff

---
 fence/agents/apc_snmp/fence_apc_snmp.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fence/agents/apc_snmp/fence_apc_snmp.py b/fence/agents/apc_snmp/fence_apc_snmp.py
index 9fd0c14..ec9353a 100755
--- a/fence/agents/apc_snmp/fence_apc_snmp.py
+++ b/fence/agents/apc_snmp/fence_apc_snmp.py
@@ -117,9 +117,9 @@ class FenceAgent:
 	def status(self):
 		oid = self.status_oid % self.resolve_outlet()
 		dummy, stat = self.snmp.get(oid)
-		if stat == self.state_on:
+		if stat == self.state_on or stat == "outletStatusOn":
 			return 'on'
-		elif stat == self.state_off:
+		elif stat == self.state_off or stat == "outletStatusOff":
 			return 'off'
 		else:
 			raise Exception, 'invalid status ' + stat


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