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

Jan Friesse honzaf at fedoraproject.org
Thu Oct 29 10:59:53 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=7ad3b039132287a77480ba19bf7ce6c8df1feb94
Commit:        7ad3b039132287a77480ba19bf7ce6c8df1feb94
Parent:        f6f23734ebb47d6ed18bad53faf19fd25ff76c28
Author:        Jan Friesse <jfriesse at redhat.com>
AuthorDate:    Thu Oct 29 11:52:44 2009 +0100
Committer:     Jan Friesse <jfriesse at redhat.com>
CommitterDate: Thu Oct 29 11:56:22 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#531724
---
 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 d6f6ab4..94f5af5 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