summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Bundler.py6
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',