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

[Cluster-devel] conga/luci/site/luci/Extensions homebase_adapt ...



CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL5
Changes by:	rmccabe sourceware org	2006-10-30 20:20:04

Modified files:
	luci/site/luci/Extensions: homebase_adapters.py 

Log message:
	ref bz# 212440

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/homebase_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.34.2.1&r2=1.34.2.2

--- conga/luci/site/luci/Extensions/homebase_adapters.py	2006/10/24 16:36:23	1.34.2.1
+++ conga/luci/site/luci/Extensions/homebase_adapters.py	2006/10/30 20:20:04	1.34.2.2
@@ -971,9 +971,9 @@
 	if i != True:
 		return 'Authentication for storage system \"' + host + '\" failed'
 
-	rhost = rc.system_name()
-	if rhost and rhost != host and rhost[:9] != 'localhost' and rhost[:5] != '127.0':
-		host = str(rhost)
+#	rhost = rc.system_name()
+#	if rhost and rhost != host and rhost[:9] != 'localhost' and rhost[:5] != '127.0':
+#		host = str(rhost)
 
 	try:
 		exists = self.restrictedTraverse(PLONE_ROOT +'/systems/storage/' + host)
@@ -1060,10 +1060,10 @@
 		pass # we were unable to set the OS property string on this cluster
 
 	for i in nodeList:
-		if 'ricci_host' in i:
-			host = str(i['ricci_host'])
-		else:
-			host = str(i['host'])
+		#if 'ricci_host' in i:
+		#	host = str(i['ricci_host'])
+		#else:
+		host = str(i['host'])
 
 		try:
 			newCluster.manage_addFolder(host, '__luci__:csystem:' + clusterName)
@@ -1090,10 +1090,10 @@
 	# Only add storage systems if the cluster and cluster node DB
 	# objects were added successfully.
 	for i in nodeList:
-		if 'ricci_host' in i:
-			host = str(i['ricci_host'])
-		else:
-			host = str(i['host'])
+		#if 'ricci_host' in i:
+		#	host = str(i['ricci_host'])
+		#else:
+		host = str(i['host'])
 
 		try:
 			# It's already there, as a storage system, no problem.
@@ -1118,10 +1118,10 @@
 		return 'No cluster named \"' + clusterName + '\" is managed by Luci'
 
 	for i in nodeList:
-		if 'ricci_host' in i:
-			host = str(i['ricci_host'])
-		else:
-			host = str(i['host'])
+		#if 'ricci_host' in i:
+		#	host = str(i['ricci_host'])
+		#else:
+		host = str(i['host'])
 
 		try:
 			clusterObj.manage_addFolder(host, '__luci__:csystem:' + clusterName)
@@ -1144,10 +1144,10 @@
 	# Only add storage systems if the and cluster node DB
 	# objects were added successfully.
 	for i in nodeList:
-		if 'ricci_host' in i:
-			host = str(i['ricci_host'])
-		else:
-			host = str(i['host'])
+		#if 'ricci_host' in i:
+		#	host = str(i['ricci_host'])
+		#else:
+		host = str(i['host'])
 
 		try:
 			# It's already there, as a storage system, no problem.
@@ -1189,7 +1189,7 @@
 		except: pass
 	else:
 		try:
-			newSystem = self.restrictedTraverse(PLONE_ROOT + '/systems/cluster/' + cluster_info[0] + '/' + rc.system_name())
+			newSystem = self.restrictedTraverse(PLONE_ROOT + '/systems/cluster/' + cluster_info[0] + '/' + systemName)
 		except:
 			try: rc.unauth()
 			except: pass


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