Skip to contentSkip to conversation

conga/luci/site/luci/Extensions homebase_adapt ...

Cluster-devel [email protected] 1 participant 1 message Oct 13, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-10-13 17:12:41

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

Log message:
allow removing a storage system, even if we're unable to talk to the ricci node that's [supposed to be] running on it

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

luci/site/luci/Extensions/homebase_adapters.py +5 -1
@@ -1107,7 +1107,11 @@
 		if not rc:
 			raise
 	except:
-		return 'Unable to connect to the ricci agent on \"' + systemName + '\" to unauthenticate'
+		try:
+			ssystem.manage_delObjects([systemName])
+		except:
+			return 'Unable to delete the storage system \"' + systemName + '\"'
+		return
 
 	# Only unauthenticate if the system isn't a member of
 	# a managed cluster.