public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL4 - [FENCE] Fix #484910 - fence_apc_snmp: invalid status outletStatusOff
@ 2009-02-10 17:27 Marek Grác
0 siblings, 0 replies; only message in thread
From: Marek Grác @ 2009-02-10 17:27 UTC (permalink / raw)
To: cluster-cvs-relay
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-10 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 17:27 cluster: RHEL4 - [FENCE] Fix #484910 - fence_apc_snmp: invalid status outletStatusOff 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).