You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by mr...@apache.org on 2009/04/03 21:16:04 UTC

svn commit: r761800 - /incubator/tashi/trunk/src/tashi/agents/primitive.py

Author: mryan3
Date: Fri Apr  3 21:16:00 2009
New Revision: 761800

URL: http://svn.apache.org/viewvc?rev=761800&view=rev
Log:
A minor change to the primitive scheduler so that an overriding config file can bypass a hook set in the defaults file.


Modified:
    incubator/tashi/trunk/src/tashi/agents/primitive.py

Modified: incubator/tashi/trunk/src/tashi/agents/primitive.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/agents/primitive.py?rev=761800&r1=761799&r2=761800&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/agents/primitive.py (original)
+++ incubator/tashi/trunk/src/tashi/agents/primitive.py Fri Apr  3 21:16:00 2009
@@ -42,7 +42,10 @@
 			(name, value) = item
 			name = name.lower()
 			if (name.startswith("hook")):
-				self.hooks.append(instantiateImplementation(value, config, client, transport, False))
+				try:
+					self.hooks.append(instantiateImplementation(value, config, client, transport, False))
+				except:
+					self.log.exception("Failed to load hook %s" % (value))
 	
 	def start(self):
 		oldInstances = {}