From adf037aa31031be164e68b1a4817a7cada936c90 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 2 Oct 2012 15:00:03 -0400 Subject: testsuite: added unit tests for Cfg handlers --- src/lib/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py') diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py index 2396d6eb6..e5ba0a51b 100644 --- a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py +++ b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py @@ -23,9 +23,9 @@ class CfgInfoXML(CfgInfo): mdata = dict() self.infoxml.pnode.Match(metadata, mdata, entry=entry) if 'Info' not in mdata: - LOGGER.error("Failed to set metadata for file %s" % - entry.get('name')) - raise Bcfg2.Server.Plugin.PluginExecutionError + msg = "Failed to set metadata for file %s" % entry.get('name') + LOGGER.error(msg) + raise Bcfg2.Server.Plugin.PluginExecutionError(msg) self._set_info(entry, mdata['Info'][None]) bind_info_to_entry.__doc__ = CfgInfo.bind_info_to_entry.__doc__ -- cgit v1.2.3-1-g7c22