Skip to contentSkip to conversation

conga/luci/site/luci/Extensions cluster_adapte ...

Cluster-devel [email protected] 1 participant 1 message Jul 25, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at 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

luci/site/luci/Extensions/cluster_adapters.py +8 -2
@@ -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