diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2011-05-11 11:37:18 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2011-05-11 11:37:18 -0500 |
commit | 7a03a93da1701fd14a7c7195b01557ba3e6b24c5 (patch) | |
tree | c86657ba326b447f0295b110777be7d2764d3e1f /src | |
parent | e51bcb3562731d5000977a6aa74f6f6f1fb068fe (diff) | |
download | bcfg2-7a03a93da1701fd14a7c7195b01557ba3e6b24c5.tar.gz bcfg2-7a03a93da1701fd14a7c7195b01557ba3e6b24c5.tar.bz2 bcfg2-7a03a93da1701fd14a7c7195b01557ba3e6b24c5.zip |
Cfg: Fix PluginExecutionError
Replaces PluginExecutionError with Bcfg2.Server.Plugin.PluginExecutionError. Reported by emias.
Diffstat (limited to 'src')
-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 41cf6c9c1..998bacc19 100644 --- a/src/lib/Server/Plugins/Cfg.py +++ b/src/lib/Server/Plugins/Cfg.py @@ -187,7 +187,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) |