[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] Cluster Project branch, RHEL47, updated. gfs-kernel_2_6_9_76-83-gfb39153

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".


The branch, RHEL47 has been updated
       via  fb391530844c929a00b1621893b80722beb67228 (commit)
      from  0949bb8d8f145a8fe4121cf530d500d3125ab426 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fb391530844c929a00b1621893b80722beb67228
Author: jparsons <jparsons redhat com>
Date:   Mon Jul 21 09:47:37 2008 -0400

    Fix for bz447414


Summary of changes:
 fence/agents/apc_snmp/fence_apc_snmp.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fence/agents/apc_snmp/fence_apc_snmp.py b/fence/agents/apc_snmp/fence_apc_snmp.py
index 9fd0c14..f2b34fa 100755
--- a/fence/agents/apc_snmp/fence_apc_snmp.py
+++ b/fence/agents/apc_snmp/fence_apc_snmp.py
@@ -28,9 +28,9 @@ import signal
 from glob import glob
+REDHAT_COPYRIGHT=("Copyright (C) Red Hat, Inc.  2004  All rights reserved.")
+BUILD_DATE="(built Tue Apr 15 16:19:29 EDT 2008)";
@@ -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'
 			raise Exception, 'invalid status ' + stat

Cluster Project

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]