From cd9b923b946c45c5a732fa6e053a59c0f9fcb40e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 13 Oct 2006 12:30:43 -0400 Subject: Import feature added (usable for things like /mnt/redhat) --- cobbler/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cobbler/api.py') diff --git a/cobbler/api.py b/cobbler/api.py index f4387eb..18ed9e0 100644 --- a/cobbler/api.py +++ b/cobbler/api.py @@ -116,11 +116,13 @@ class BootAPI: enchant = action_enchant.Enchant(self._config,sysname,password) return enchant.run() - def import_tree(self,tree_path): + def import_tree(self,tree_path,mirror_url): """ Automatically import a directory tree full of distribution files. + Imports either a tree (path) or mirror (ftp/http). + Mirror support really doesn't exist yet... TBA. """ - importer = action_import.Importer(self._config, tree_path) + importer = action_import.Importer(self._config, tree_path, mirror_url) return importer.run() def serialize(self): -- cgit