Skip to contentSkip to conversation

conga/luci/site/luci/Extensions ResourceHandler.py

Cluster-devel [email protected] 1 participant 1 message Sep 18, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-18 21:49:46

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

Log message:
add support for setting the self_fence attribute on clusterfs resources, part 2

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

luci/site/luci/Extensions/ResourceHandler.py +5 -0
@@ -218,6 +218,11 @@
 	else:
 		res.addAttribute('force_unmount', '0')
 
+	if form.has_key('selffence'):
+		res.addAttribute('self_fence', '1')
+	else:
+		res.addAttribute('self_fence', '0')
+
 	return errors
 
 def addNetfs(res, rname, form, model):