summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-02 16:05:32 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-02 16:05:32 -0400
commita6fd395b51a624e4aa7d09b4960382784cefa8e8 (patch)
tree6fdab90d58f4d673f1e5e58201a032cd9eb7386b /cobbler/api.py
parente4fce2b7321c880f8c1f1adbdf137fc4d66563de (diff)
downloadthird_party-cobbler-a6fd395b51a624e4aa7d09b4960382784cefa8e8.tar.gz
third_party-cobbler-a6fd395b51a624e4aa7d09b4960382784cefa8e8.tar.xz
third_party-cobbler-a6fd395b51a624e4aa7d09b4960382784cefa8e8.zip
Working on moving DNS/DHCP management to cobbler/modules (uses modules.conf)
In progress.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index 29a854d..1f5a246 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -81,16 +81,6 @@ class BootAPI:
"module",
"authz_allowall"
)
- self.dhcp = self.get_module_from_file(
- "dhcp_management",
- "module",
- "dhcp_isc"
- )
- self.dns = self.get_module_from_file(
- "dns_management",
- "module",
- "dns_bind"
- )
self.kickgen = kickgen.KickGen(self._config)
self.logger.debug("API handle initialized")
@@ -346,7 +336,12 @@ class BootAPI:
return sync.run()
def get_sync(self):
- return action_sync.BootSync(self._config,dhcp=self.dhcp,dns=self.dns)
+ self.manage = self.get_module_from_file(
+ "management",
+ "module",
+ "manage_isc_and_bind"
+ ).get_manager(self._config)
+ return action_sync.BootSync(self._config,manage=self.manage)
def reposync(self, name=None):
"""