[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
Branch: 	RHEL5
Changes by:	jparsons 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
 


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