[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	jparsons sourceware org	2006-07-25 20:16:21

Modified files:
	luci/site/luci/Extensions: cluster_adapters.py 

Log message:
	Fixed more quorum stuff in cluster info

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.14&r2=1.15

--- conga/luci/site/luci/Extensions/cluster_adapters.py	2006/07/25 20:01:12	1.14
+++ conga/luci/site/luci/Extensions/cluster_adapters.py	2006/07/25 20:16:21	1.15
@@ -955,10 +955,13 @@
     return
 
   elif actiontype == FENCEDAEMON:
+    pass
 
   elif actiontype == MULTICAST:
+    pass
 
   elif actiontype == QUORUMD:
+    pass
 
   else:
     return
@@ -1019,6 +1022,10 @@
   map['min_score'] = ""
   map['device'] = ""
   map['label'] = ""
+
+  #list struct for heuristics...
+  hlist = list()
+
   if is_quorumd:
     qdp = model.getQuorumdPtr()
     interval = qdp.getAttribute('interval')
@@ -1047,7 +1054,6 @@
 
     heuristic_kids = qdp.getChildren()
     h_ctr = 0
-    hlist = list()
     for kid in heuristic_kids:
       hmap = {}
       hname = kid.getAttribute('name')
@@ -1073,7 +1079,7 @@
       else:
         hmap['hinterval'] = ""
       hlist.append(hmap)
-    map['hlist'] = hlist
+  map['hlist'] = hlist
 
   return map
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]