From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 26 Jan 2007 19:35:00 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions cluster_adapte ... Message-ID: <20070126193500.15427.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. 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