diff options
-rw-r--r-- | src/lib/Server/Plugins/SSHbase.py | 7 |
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: |