summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-06-10 13:58:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-06-10 13:58:03 +0000
commit7fb3fc58674e5ff7fd1310c4839df5ca0004f8db (patch)
tree0911d36c18a55ecd537574250eba684980b19788 /src
parent15b08bc42392bda2346087faf13c21154391ce60 (diff)
downloadbcfg2-7fb3fc58674e5ff7fd1310c4839df5ca0004f8db.tar.gz
bcfg2-7fb3fc58674e5ff7fd1310c4839df5ca0004f8db.tar.bz2
bcfg2-7fb3fc58674e5ff7fd1310c4839df5ca0004f8db.zip
Patch for Jos to fix initialization errors
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1874 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index d35dfa7a8..662f51a20 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -32,7 +32,12 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin):
def __init__(self, core, datastore):
Bcfg2.Server.Plugin.Plugin.__init__(self, core, datastore)
- self.repository = Bcfg2.Server.Plugin.DirectoryBacked(self.data, self.core.fam)
+ try:
+ self.repository = Bcfg2.Server.Plugin.DirectoryBacked(self.data, self.core.fam)
+ except OSError, ioerr:
+ self.logger.error("Failed to load SSHbase repository from %s" % (self.data))
+ self.logger.error(ioerr)
+ raise Bcfg2.Server.Plugin.PluginInitError
try:
prefix = open("%s/prefix" % (self.data)).read().strip()
except IOError: