[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:	rmccabe sourceware org	2007-01-26 19:35:00

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

Log message:
	fix a bug that caused nodes to be reported to be using fence devices they are not using.

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

--- conga/luci/site/luci/Extensions/cluster_adapters.py	2007/01/26 17:56:14	1.212
+++ conga/luci/site/luci/Extensions/cluster_adapters.py	2007/01/26 19:35:00	1.213
@@ -4558,13 +4558,16 @@
 
   #Get list of fence devices
   fds = model.getFenceDevices()
-  nodes_used = list() #This section determines which nodes use the dev
   for fd in fds:
+    #This section determines which nodes use the dev
     #create fencedev hashmap
+    nodes_used = list()
+
     if fd.isShared() == True:
       fencedev = {}
       attr_hash = fd.getAttributes()
       kees = attr_hash.keys()
+
       for kee in kees:
         fencedev[kee] = attr_hash[kee] #copy attrs over
       try:
@@ -4572,6 +4575,7 @@
       except:
         fencedev['unknown'] = True
         fencedev['pretty_name'] = fd.getAgentType()
+
       fencedev['agent'] = fd.getAgentType()
       #Add config url for this fencedev
       fencedev['cfgurl'] = baseurl + "?clustername=" + clustername + "&fencename=" + fd.getName().strip() + "&pagetype=" + FENCEDEV


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