fence-agents: master - Fence agents: Fix traceback when using any SNMP agent

Jan Friesse honzaf at fedoraproject.org
Thu Oct 29 10:54:41 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=dd4badc487c104422a389e7b5a18921beb5459fa
Commit:        dd4badc487c104422a389e7b5a18921beb5459fa
Parent:        cd8c9ee12db21f53586c60c58f35745b19f9d71c
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:52:44 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