summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Core.py')
-rw-r--r--src/lib/Server/Core.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 5687cba9d..b29c9bf05 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -24,13 +24,15 @@ class CoreInitError(Exception):
class Core(object):
'''The Core object is the container for all Bcfg2 Server logic, and modules'''
- def __init__(self, repo, plugins, structures, generators, password, svn, encoding):
+ def __init__(self, repo, plugins, structures, generators, password, svn,
+ encoding, filemonitor='default'):
object.__init__(self)
self.datastore = repo
try:
- self.fam = Bcfg2.Server.FileMonitor.default()
+ self.fam = Bcfg2.Server.FileMonitor.available[filemonitor]()
except IOError:
- raise CoreInitError, "failed to connect to fam"
+ raise CoreInitError, "failed to instantiate fam driver (used %s)" % \
+ filemonitor
self.pubspace = {}
self.generators = []
self.structures = []