summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-27 21:49:53 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-27 21:49:53 +0000
commit4f5559f28607e4edf672786ef24e263722172999 (patch)
tree50039f0a128805ad7591137a5f6f48e0b926b947 /src
parent5816f6b80db999d6c37009a18dcac73df2db09c7 (diff)
downloadbcfg2-4f5559f28607e4edf672786ef24e263722172999.tar.gz
bcfg2-4f5559f28607e4edf672786ef24e263722172999.tar.bz2
bcfg2-4f5559f28607e4edf672786ef24e263722172999.zip
fix transient error case
(Logical change 1.324) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1320 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index 0dc896d2c..125e85ad2 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -63,7 +63,10 @@ class SSHbase(Plugin):
return (ipaddr, client)
except gaierror:
pass
- ipaddr = popen("getent hosts %s" % client).read().strip().split()
+ try:
+ ipaddr = popen("getent hosts %s" % client).read().strip().split()
+ except:
+ ipaddr = ''
if ipaddr:
self.ipcache[client] = (ipaddr, client)
return (ipaddr, client)