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

rmccabe at sourceware.org rmccabe at sourceware.org
Thu Nov 2 21:12:07 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2006-11-02 21:12:07

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

Log message:
	if node unauthentication fails and debugging is enabled, print a message to syslog

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

--- conga/luci/site/luci/Extensions/homebase_adapters.py	2006/11/02 03:17:07	1.39
+++ conga/luci/site/luci/Extensions/homebase_adapters.py	2006/11/02 21:12:07	1.40
@@ -137,8 +137,12 @@
 				rc = RicciCommunicator(host)
 				rc.unauth()
 				i['cur_auth'] = False
-		except:
-			pass
+		except Exception, e:
+			try:
+				luci_log.debug_verbose('unauth for %s failed: %s' \
+					% (i['host'], str(e)))
+			except:
+				pass
 
 def nodeAuth(cluster, host, passwd):
 	messages = list()




More information about the Cluster-devel mailing list