conga/luci/site/luci/Extensions ricci_bridge.py
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-07-31 21:18:36
Modified files:
luci/site/luci/Extensions: ricci_bridge.py
Log message:
setClusterConf fix
luci/site/luci/Extensions/ricci_bridge.py +5 -1
@@ -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)