cluster: RHEL55 - Fence agents: Fix traceback when using any SNMP agent

Jan Friesse honzaf at fedoraproject.org
Mon Nov 9 10:10:45 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=42d1a31fd708b84d7984b507a4c056d416d3be7b
Commit:        42d1a31fd708b84d7984b507a4c056d416d3be7b
Parent:        7c7b9e3c6e7f2a41376ce04d2cfc3c0d88840494
Author:        Jan Friesse <jfriesse at redhat.com>
AuthorDate:    Mon Nov 9 11:10:15 2009 +0100
Committer:     Jan Friesse <jfriesse at redhat.com>
CommitterDate: Mon Nov 9 11:10:15 2009 +0100

Fence agents: Fix traceback when using any SNMP agent

Main problem was hidden in forgotten "self" in
fencing_snmp caused by commit:

Author: Marek 'marx' Grac <mgrac at redhat.com>
Date:   Fri Oct 9 13:36:25 2009 +0200
fencing: Timeout options added

RHBZ#507514
---
 fence/agents/lib/fencing_snmp.py.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/agents/lib/fencing_snmp.py.py b/fence/agents/lib/fencing_snmp.py.py
index 1fa1f07..1519457 100644
--- a/fence/agents/lib/fencing_snmp.py.py
+++ b/fence/agents/lib/fencing_snmp.py.py
@@ -80,7 +80,7 @@ class FencingSnmp:
 		try:
 			self.log_command(command)
 
-			(res_output,res_code)=pexpect.run(command,int(options["-Y"])+int(options["-y"])+additional_timemout,True)
+			(res_output,res_code)=pexpect.run(command,int(self.options["-Y"])+int(self.options["-y"])+additional_timemout,True)
 
 			if (res_code==None):
 				fail(EC_TIMED_OUT)


More information about the cluster-commits mailing list