Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > d536e3b2143fe88c174c968d683c0f4f > files > 17

conga-0.12.2-24.el5_6.1.src.rpm

Index: luci/site/luci/Extensions/FenceHandler.py
===================================================================
RCS file: /cvs/cluster/conga/luci/site/luci/Extensions/FenceHandler.py,v
retrieving revision 1.4.2.19
diff -u -r1.4.2.19 FenceHandler.py
--- a/luci/site/luci/Extensions/FenceHandler.py	5 Aug 2010 17:33:05 -0000	1.4.2.19
+++ b/luci/site/luci/Extensions/FenceHandler.py	5 Aug 2010 19:06:08 -0000
@@ -894,15 +894,15 @@
 		errors.append(FD_PROVIDE_PASSWD)
 
 	try:
-		auth_type = form['auth_type'].strip().lower()
+		auth_type = form['auth'].strip().lower()
 		if not auth_type or auth_type == 'none':
-			fencedev.removeAttribute('auth_type')
+			fencedev.removeAttribute('auth')
 		elif auth_type == 'password' or auth_type == 'md5':
-			fencedev.setAttribute('auth_type', auth_type)
+			fencedev.addAttribute('auth', auth_type)
 		else:
 			errors.append(FD_PROVIDE_IPMILAN_AUTH)
 	except KeyError, e:
-		fencedev.removeAttribute('auth_type')
+		fencedev.removeAttribute('auth')
 	except Exception, e:
 		errors.append(FD_PROVIDE_IPMILAN_AUTH)
 
@@ -911,7 +911,7 @@
 		if not lanplus or lanplus == '0' or lanplus == 'false' or lanplus == 'off':
 			fencedev.removeAttribute('lanplus')
 		else:
-			fencedev.setAttribute('lanplus', '1')
+			fencedev.addAttribute('lanplus', '1')
 	except Exception, e:
 		fencedev.removeAttribute('lanplus')