From 10326a34dd813b88c6c8816115e91977a93a1f10 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 20 Dec 2012 10:02:41 -0600 Subject: Cfg: added creator handler to perform one-time creation of static data --- src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py') 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()): -- cgit v1.2.3-1-g7c22