From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 15 Jun 2007 15:33:58 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions StorageReport.py Message-ID: <20070615153358.16640.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 Branch: RHEL4 Changes by: rmccabe at sourceware.org 2007-06-15 15:33:58 Modified files: luci/site/luci/Extensions: StorageReport.py Log message: Fix bz241417: Conga tries to configurage cluster snaps, though they are not available. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.22.2.1&r2=1.22.2.2 --- conga/luci/site/luci/Extensions/StorageReport.py 2007/03/05 20:22:35 1.22.2.1 +++ conga/luci/site/luci/Extensions/StorageReport.py 2007/06/15 15:33:58 1.22.2.2 @@ -1588,7 +1588,7 @@ if node.nodeType == xml.dom.Node.ELEMENT_NODE: if node.nodeName == BD_TEMPLATE: snap_lv = get_bd_data_internal(session, node, mapper_xml) - if snap_lv != None: + if snap_lv is not None and snap_lv['props']['clustered']['value'] != 'true': if snap_lv['props']['snapshot']['value'] == 'true': origs = snap_lv['props']['snapshot_origin']['value'] if pretty_name in origs: