Skip to contentSkip to conversation

conga/luci/site/luci/Extensions FenceHandler.py

Cluster-devel [email protected] 1 participant 1 message Dec 11, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-12-11 15:54:16

Modified files:
luci/site/luci/Extensions: FenceHandler.py

Log message:

	fix 379461

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/FenceHandler.py.diff?cvsroot=cluster&r1=1.27&r2=1.28

luci/site/luci/Extensions/FenceHandler.py +11 -0
@@ -643,6 +643,17 @@
 	if not has_passwd:
 		errors.append(FD_PROVIDE_PASSWD)
 
+	try:
+		modulename = form['modulename'].strip()
+		if not modulename:
+			raise Exception, 'blank'
+		fencedev.addAttribute('modulename', modulename)
+	except Exception, e:
+		try:
+			fencedev.removeAttribute('modulename')
+		except:
+			pass
+
 	return errors
 
 def val_rps10_fd(form, fencedev):