summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorroot <root@mdehaan.rdu.redhat.com>2007-09-05 18:15:33 -0400
committerroot <root@mdehaan.rdu.redhat.com>2007-09-05 18:15:33 -0400
commit321084391b0115dd2b68b03f367a8f859717d3c6 (patch)
tree894268f2a5f4841f647d64e74cde6bb205476069 /cobbler/api.py
parent674b523dd71d0bfe88cc600aa122f6a22e7b64a7 (diff)
downloadthird_party-cobbler-321084391b0115dd2b68b03f367a8f859717d3c6.tar.gz
third_party-cobbler-321084391b0115dd2b68b03f367a8f859717d3c6.tar.xz
third_party-cobbler-321084391b0115dd2b68b03f367a8f859717d3c6.zip
Further work on interchangeable backends. Rather than keeping the config file
format choice in settings (which is something of a Catch-22 situation), this may end up being a config file setting in /etc. Module loaders work and still default to yaml, though I've coded up a sample simple_json serializer that will be functional if users install simple-json. This is just demoware, JSON isn't replacing yaml and is (at least in this case) not as readable because of the way it escapes slashes. This is primarily to enable future work to integrate with other config file formats, such as possibly getting some of the system info from LDAP. Possibly.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index f5d3322..1c9a445 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -23,6 +23,7 @@ import action_reposync
import action_status
import action_validate
import sub_process
+import module_loader
class BootAPI:
@@ -36,10 +37,10 @@ class BootAPI:
self.__dict__ = self.__shared_state
if not BootAPI.has_loaded:
- BootAPI.has_loaded = True
- self._config = config.Config(self)
+ BootAPI.has_loaded = True
+ self.modules = module_loader.load_modules()
+ self._config = config.Config(self)
self.deserialize()
- self.__settings = self._config.settings()
def version(self):
"""