summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2011-05-11 11:37:18 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-06-14 12:36:45 -0500
commita408e7cbe36beacc2aefe291ac3f5caec36ddf35 (patch)
treed6f91e10063d37524ae817e0977106be7ec589f2 /src/lib/Server
parentfe17a4a28a9adcfd0b5365425f498dd4f6816511 (diff)
downloadbcfg2-a408e7cbe36beacc2aefe291ac3f5caec36ddf35.tar.gz
bcfg2-a408e7cbe36beacc2aefe291ac3f5caec36ddf35.tar.bz2
bcfg2-a408e7cbe36beacc2aefe291ac3f5caec36ddf35.zip
Cfg: Fix PluginExecutionError
Replaces PluginExecutionError with Bcfg2.Server.Plugin.PluginExecutionError. Reported by emias.
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/Cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py
index a97cbd550..7fc35cec1 100644
--- a/src/lib/Server/Plugins/Cfg.py
+++ b/src/lib/Server/Plugins/Cfg.py
@@ -188,7 +188,7 @@ class CfgEntrySet(Bcfg2.Server.Plugin.EntrySet):
name = self.build_filename(specific)
if name.endswith(".genshi"):
logger.error("Cfg: Unable to pull data for genshi types")
- raise PluginExecutionError
+ raise Bcfg2.Server.Plugin.PluginExecutionError
open(name, 'w').write(new_entry['text'])
if log:
logger.info("Wrote file %s" % name)