From mboxrd@z Thu Jan 1 00:00:00 1970 From: jparsons@sourceware.org Date: 27 Jul 2006 14:24:00 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions ricci_bridge.py Message-ID: <20060727142400.2025.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: jparsons at sourceware.org 2006-07-27 14:23:59 Modified files: luci/site/luci/Extensions: ricci_bridge.py Log message: set cluster.conf method Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&r1=1.8&r2=1.9 --- conga/luci/site/luci/Extensions/ricci_bridge.py 2006/07/19 22:50:13 1.8 +++ conga/luci/site/luci/Extensions/ricci_bridge.py 2006/07/27 14:23:59 1.9 @@ -514,6 +514,24 @@ return False +def setClusterConf(clusterconf, propagate=True): + if propagate == True: + propg = "True" + else: + propg = "False" + + QUERY_STR='' + + try: + payload = self.makeConnection(QUERY_STR) + except RicciReceiveError, r: + return None + + + batch_number, result = self.batchAttemptResult(payload) + return (batch_number, result) + + def createClusterBatch(cluster_name, cluster_alias, nodeList, services, shared_storage, LVS): batch = '' batch += ''