diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-03 15:28:06 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-03 15:28:06 -0400 |
commit | df04a2cb820c3d161d207352e1745b04944026b3 (patch) | |
tree | 1ef6502d88988ec1524df2ab81453dd7bfa67469 /src | |
parent | 9eb3db849ba11ac49ced872a585f001bad3d8384 (diff) | |
download | bcfg2-df04a2cb820c3d161d207352e1745b04944026b3.tar.gz bcfg2-df04a2cb820c3d161d207352e1745b04944026b3.tar.bz2 bcfg2-df04a2cb820c3d161d207352e1745b04944026b3.zip |
better error reporting for unknown template bundle render failures
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Bundler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Bundler.py b/src/lib/Bcfg2/Server/Plugins/Bundler.py index 15f8031ca..59e85f198 100644 --- a/src/lib/Bcfg2/Server/Plugins/Bundler.py +++ b/src/lib/Bcfg2/Server/Plugins/Bundler.py @@ -46,9 +46,9 @@ if HAS_GENSHI: """ get the rendered XML data that applies to the given client """ if not hasattr(self, 'template'): - self.logger.error("No parsed template information for %s" % - self.name) - raise Bcfg2.Server.Plugin.PluginExecutionError + msg = "No parsed template information for %s" % self.name + self.logger.error(msg) + raise Bcfg2.Server.Plugin.PluginExecutionError(msg) stream = self.template.generate(metadata=metadata).filter( Bcfg2.Server.Plugins.TGenshi.removecomment) data = lxml.etree.XML(stream.render('xml', |