conga/luci/site/luci/Extensions cluster_adapte ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at 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.
luci/site/luci/Extensions/cluster_adapters.py +5 -1
@@ -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