diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2011-05-11 11:37:18 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-14 12:36:45 -0500 |
commit | a408e7cbe36beacc2aefe291ac3f5caec36ddf35 (patch) | |
tree | d6f91e10063d37524ae817e0977106be7ec589f2 /src/lib | |
parent | fe17a4a28a9adcfd0b5365425f498dd4f6816511 (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Server/Plugins/Cfg.py | 2 |
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) |