[Cluster-devel] conga/luci/site/luci/Extensions cluster_adapte ...

jparsons at sourceware.org jparsons at sourceware.org
Mon Jul 24 21:51:33 UTC 2006


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')




More information about the Cluster-devel mailing list