From mboxrd@z Thu Jan 1 00:00:00 1970 From: jparsons@sourceware.org Date: 30 Oct 2006 20:43:25 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions cluster_adapte ... Message-ID: <20061030204325.9403.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: RHEL5 Changes by: jparsons at sourceware.org 2006-10-30 20:43:25 Modified files: luci/site/luci/Extensions: cluster_adapters.py Log message: fix unbound local error Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.120.2.6&r2=1.120.2.7 --- conga/luci/site/luci/Extensions/cluster_adapters.py 2006/10/25 01:53:34 1.120.2.6 +++ conga/luci/site/luci/Extensions/cluster_adapters.py 2006/10/30 20:43:25 1.120.2.7 @@ -760,8 +760,8 @@ else: cldata['currentItem'] = False - - if havePermCreateCluster(self): + UserHasPerms = havePermCreateCluster(self) + if UserHasPerms: cladd = {} cladd['Title'] = "Create a New Cluster" cladd['cfg_type'] = "clusteradd" @@ -812,7 +812,8 @@ mylist = list() mylist.append(cldata) - mylist.append(cladd) + if UserHasPerms: + mylist.append(cladd) mylist.append(clcfg) dummynode['children'] = mylist