[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/site/luci/Extensions ricci_bridge.py



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic sourceware org	2006-07-31 21:18:36

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

Log message:
	setClusterConf fix

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

--- conga/luci/site/luci/Extensions/ricci_bridge.py	2006/07/31 18:55:00	1.12
+++ conga/luci/site/luci/Extensions/ricci_bridge.py	2006/07/31 21:18:35	1.13
@@ -509,7 +509,11 @@
     else:
       propg = "False"
 
-    QUERY_STR='<?xml version="1.0" ?><ricci async="true" function="process_batch" version="1.0"><batch><module name="cluster"><request API_version="1.0"><function_call name="set_cluster.conf"/><var type="boolean" mutable="false" value="' + propg + '"/><var type="xml" mutable="false" name="cluster.conf"/>' + str(clusterconf) + </request></module></batch></ricci>'
+    conf = str(clusterconf).replace('<?xml version="1.0"?>', '')
+    conf = conf.replace('<?xml version="1.0" ?>', '')
+    conf = conf.replace('<? xml version="1.0"?>', '')
+    conf = conf.replace('<? xml version="1.0" ?>', '')
+    QUERY_STR='<?xml version="1.0" ?><ricci async="true" function="process_batch" version="1.0"><batch><module name="cluster"><request API_version="1.0"><function_call name="set_cluster.conf"><var type="boolean" name="propagate" mutable="false" value="' + propg + '"/><var type="xml" mutable="false" name="cluster.conf">' + conf + '</var></function_call></request></module></batch></ricci>'
 
     try:
       payload = self.makeConnection(QUERY_STR)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]