diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-12-20 10:02:41 -0600 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-12-20 10:02:41 -0600 |
commit | 10326a34dd813b88c6c8816115e91977a93a1f10 (patch) | |
tree | 149a2a54ce77bfcf70e9268561c1d9a701c9c0d1 /src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py | |
parent | d50d6a4625967113afbd50c658cfc89547c06ffc (diff) | |
download | bcfg2-10326a34dd813b88c6c8816115e91977a93a1f10.tar.gz bcfg2-10326a34dd813b88c6c8816115e91977a93a1f10.tar.bz2 bcfg2-10326a34dd813b88c6c8816115e91977a93a1f10.zip |
Cfg: added creator handler to perform one-time creation of static data
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py index 7277d5d08..5122d9aa1 100644 --- a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py +++ b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py @@ -1,11 +1,8 @@ """ Handle info and :info files """ -import logging import Bcfg2.Server.Plugin from Bcfg2.Server.Plugins.Cfg import CfgInfo -LOGGER = logging.getLogger(__name__) - class CfgLegacyInfo(CfgInfo): """ CfgLegacyInfo handles :file:`info` and :file:`:info` files for @@ -37,8 +34,8 @@ class CfgLegacyInfo(CfgInfo): for line in open(self.path).readlines(): match = Bcfg2.Server.Plugin.INFO_REGEX.match(line) if not match: - LOGGER.warning("Failed to parse line in %s: %s" % - (event.filename, line)) + self.logger.warning("Failed to parse line in %s: %s" % + (event.filename, line)) continue else: for key, value in list(match.groupdict().items()): |