public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* Cluster Project branch, RHEL47, updated. gfs-kernel_2_6_9_76-83-gfb39153
@ 2008-07-21 13:53 jparsons
  0 siblings, 0 replies; only message in thread
From: jparsons @ 2008-07-21 13:53 UTC (permalink / raw)
  To: cluster-cvs, cluster-devel

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".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=fb391530844c929a00b1621893b80722beb67228

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
 
 #BEGIN_VERSION_GENERATION
-FENCE_RELEASE_NAME=""
-REDHAT_COPYRIGHT=""
-BUILD_DATE=""
+FENCE_RELEASE_NAME="2.0.84";
+REDHAT_COPYRIGHT=("Copyright (C) Red Hat, Inc.  2004  All rights reserved.")
+BUILD_DATE="(built Tue Apr 15 16:19:29 EDT 2008)";
 #END_VERSION_GENERATION
 
 POWER_ON="outletOn"
@@ -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


hooks/post-receive
--
Cluster Project


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-21 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-21 13:53 Cluster Project branch, RHEL47, updated. gfs-kernel_2_6_9_76-83-gfb39153 jparsons

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).