From mboxrd@z Thu Jan 1 00:00:00 1970 From: jparsons@sourceware.org Date: 24 Jul 2006 21:51:33 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions cluster_adapte ... Message-ID: <20060724215133.27391.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-24 21:51:33 Modified files: luci/site/luci/Extensions: cluster_adapters.py Log message: added exception handler in status check Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.11&r2=1.12 --- conga/luci/site/luci/Extensions/cluster_adapters.py 2006/07/24 21:13:45 1.11 +++ conga/luci/site/luci/Extensions/cluster_adapters.py 2006/07/24 21:51:33 1.12 @@ -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')