summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Generators/SSHbase.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Server/Generators/SSHbase.py b/src/lib/Server/Generators/SSHbase.py
index 36c06b0fe..42eb2438f 100644
--- a/src/lib/Server/Generators/SSHbase.py
+++ b/src/lib/Server/Generators/SSHbase.py
@@ -4,7 +4,6 @@ __revision__ = '$Revision$'
from binascii import b2a_base64
from os import rename, system
from socket import gethostbyname, gaierror
-from syslog import syslog, LOG_ERR
from Bcfg2.Server.Generator import Generator, DirectoryBacked
@@ -58,7 +57,7 @@ class SSHbase(Generator):
filedata += "%s,%s,%s %s" % (client, "%s.mcs.anl.gov"%(client),
ipaddr, self.repository.entries[hostkey].data)
except gaierror:
- syslog(LOG_ERR, "SSHbase: DNS lookup failed for client %s" % client)
+ self.LogError("DNS lookup failed for client %s" % client)
entry.attrib.update({'owner':'root', 'group':'root', 'perms':'0644'})
entry.text = filedata