conga/luci/site/luci/Extensions cluster_adapte ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-07-24 21:51:33
Modified files:
luci/site/luci/Extensions: cluster_adapters.py
Log message:
added exception handler in status check
luci/site/luci/Extensions/cluster_adapters.py +4 -1
@@ -763,7 +763,10 @@ results = list() vals = {} vals['type'] = "cluster" - vals['alias'] = doc.firstChild.getAttribute('alias') + try: + vals['alias'] = doc.firstChild.getAttribute('alias') + except AttributeError, e: + vals['alias'] = doc.firstChild.getAttribute('name') vals['votes'] = doc.firstChild.getAttribute('votes') vals['name'] = doc.firstChild.getAttribute('name') vals['minQuorum'] = doc.firstChild.getAttribute('minQuorum')