conga/luci/site/luci/Extensions LuciClusterInf ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-07-03 17:06:00
Modified files:
luci/site/luci/Extensions: LuciClusterInfo.py PropsObject.py
cluster_adapters.py
luci/site/luci/Extensions/ClusterModel: ModelBuilder.py
Removed files:
luci/site/luci/Extensions/ClusterModel: GeneralError.py
Log message:
More cleanup.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciClusterInfo.py.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/PropsObject.py.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.259&r2=1.260
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/GeneralError.py.diff?cvsroot=cluster&r1=1.2&r2=NONE
luci/site/luci/Extensions/LuciClusterInfo.py +1 -2
@@ -6,7 +6,6 @@ # Free Software Foundation. from Products.Archetypes.utils import make_uuid -from ClusterModel.GeneralError import GeneralError from ClusterModel.ModelBuilder import ModelBuilder import RicciQueries as rq from ricci_communicator import RicciCommunicator
@@ -1146,7 +1145,7 @@ # is returned. try: node = model.retrieveNodeByName(nodename) - except GeneralError, e: + except Exception, e: if LUCI_DEBUG_MODE is True: luci_log.debug_verbose('getFenceInfo3: unable to find node name "%s" in current node list: %r %s' % (str(nodename), e, str(e))) return {}
luci/site/luci/Extensions/PropsObject.py +2 -4
@@ -7,8 +7,7 @@ from Variable import parse_variable from ricci_defines import PROPS_TAG -import xml -import xml.dom +from xml.dom.Node import ELEMENT_NODE class PropsObject:
@@ -36,7 +35,7 @@ def import_xml(self, parent_node): props = None for node in parent_node.childNodes: - if node.nodeType == xml.dom.Node.ELEMENT_NODE: + if node.nodeType == ELEMENT_NODE: if node.nodeName == str(PROPS_TAG): props = node if props is None:
@@ -48,4 +47,3 @@ except: continue return self -
luci/site/luci/Extensions/cluster_adapters.py +58 -96
271 lines not on this page · raw message
luci/site/luci/Extensions/ClusterModel/ModelBuilder.py +2 -3
@@ -48,7 +48,6 @@ from FailoverDomains import FailoverDomains from FailoverDomainNode import FailoverDomainNode from Rm import Rm -from GeneralError import GeneralError DLM_TYPE = 0 GULM_TYPE = 1
@@ -563,7 +562,7 @@ if svc.getName() == name: return svc - raise GeneralError('FATAL', "Couldn't find service name in current list") + raise KeyError, 'Couldn\'t find service name %s in current list' % name def retrieveVMsByName(self, name): vms = self.getVMs()
@@ -571,7 +570,7 @@ if v.getName() == name: return v - raise GeneralError('FATAL', "Couldn't find VM name %s in current list" % name) + raise KeyError, 'Couldn\'t find VM name %s in current list' % name def del_totem(self): if self.TOTEM_ptr is not None: