Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > d236c5da97a239a1b6991cfba2865b66 > files > 89

cman-2.0.115-68.el5_6.1.src.rpm

commit 42d1a31fd708b84d7984b507a4c056d416d3be7b
Author: Jan Friesse <jfriesse@redhat.com>
Date:   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@redhat.com>
    Date:   Fri Oct 9 13:36:25 2009 +0200
    fencing: Timeout options added
    
    RHBZ#507514

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)