From 3bfa78264e19bcf77ad84c0d6b746b4fc578cfa4 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 29 Sep 2005 15:58:42 +0000 Subject: switch to using LogError (Logical change 1.327) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1332 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Chiba.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/Server/Plugins/Chiba.py b/src/lib/Server/Plugins/Chiba.py index 15de43952..e74036d1b 100644 --- a/src/lib/Server/Plugins/Chiba.py +++ b/src/lib/Server/Plugins/Chiba.py @@ -1,8 +1,7 @@ '''This module configures files in a Chiba City specific way''' -__revision__ = '$Revision$' +__revision__ = '$Revision:$' from socket import gethostbyname, gaierror -from syslog import syslog, LOG_ERR from Bcfg2.Server.Plugin import Plugin, DirectoryBacked, SingleXMLFileBacked, PluginExecutionError class ChibaConf(SingleXMLFileBacked): @@ -35,7 +34,7 @@ class Chiba(Plugin): ".".join(metadata.hostname.split('.')[1:])) myriaddr = gethostbyname(myriname) except gaierror: - syslog(LOG_ERR, "Failed to resolve %s"% myriname) + self.LogError("Failed to resolve %s"% myriname) raise PluginExecutionError, (myriname, 'lookup') entry.text = self.repo.entries['interfaces-template'].data % myriaddr -- cgit v1.2.3-1-g7c22