summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-01-19 03:47:01 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-01-19 03:47:01 +0000
commit63fd12b57031fda6b13e10197f14e3a045374df3 (patch)
tree6e1f17be175388185c8045b38a8998ac4b10e3fd /src
parent5e0e9736d6eb1eb0ca065c58371f9d003f83b701 (diff)
downloadbcfg2-63fd12b57031fda6b13e10197f14e3a045374df3.tar.gz
bcfg2-63fd12b57031fda6b13e10197f14e3a045374df3.tar.bz2
bcfg2-63fd12b57031fda6b13e10197f14e3a045374df3.zip
add log on err
(Logical change 1.192) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@817 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Generators/Chiba.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Generators/Chiba.py b/src/lib/Server/Generators/Chiba.py
index 5b7cbbddc..597a30679 100644
--- a/src/lib/Server/Generators/Chiba.py
+++ b/src/lib/Server/Generators/Chiba.py
@@ -2,6 +2,7 @@
__revision__ = '$Revision$'
from socket import gethostbyname, gaierror
+from syslog import syslog, LOG_ERR
from Bcfg2.Server.Generator import Generator, DirectoryBacked, SingleXMLFileBacked, GeneratorError
class ChibaConf(SingleXMLFileBacked):
@@ -33,6 +34,7 @@ class Chiba(Generator):
try:
myriaddr = gethostbyname("%s-myr" % metadata.hostname)
except gaierror:
+ syslog(LOG_ERR, "Failed to resolve %s-myr"% metadata.hostname)
raise GeneratorError, ("%s-myr" % metadata.hostname, 'lookup')
entry.text = self.repo.entries['interfaces-template'].data % myriaddr