summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Core.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 615c16dff..b481033c4 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -57,11 +57,13 @@ class Core(object):
self.pubspace = {}
self.structures = []
for structure in structures:
- s = getattr(__import__("Bcfg2.Structures.%s"%(structure)),structure)
+ m = getattr(__import__("Bcfg2.Server.Structures.%s"%(structure)).Server.Structures, structure)
+ s = getattr(m, structure)
self.structures.append(s(self, self.datastore))
self.generators = []
for generator in generators:
- g = getattr(__import__("Bcfg2.Generators.%s"%(generator)),generator)
+ m=getattr(__import__("Bcfg2.Server.Generators.%s"%(generator)).Server.Generators,generator)
+ g = getattr(m, generator)
self.generators.append(g(self, self.datastore))
# we need to inventory and setup generators
# Process generator requirements