diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-10-13 12:30:43 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-10-13 12:30:43 -0400 |
commit | cd9b923b946c45c5a732fa6e053a59c0f9fcb40e (patch) | |
tree | 6bc459a428a53416c4aa55a68553dd3c9c5e48aa /cobbler/api.py | |
parent | 6e84895b828b4fa5e3c45464dd08949fa382dfa5 (diff) | |
download | third_party-cobbler-cd9b923b946c45c5a732fa6e053a59c0f9fcb40e.tar.gz third_party-cobbler-cd9b923b946c45c5a732fa6e053a59c0f9fcb40e.tar.xz third_party-cobbler-cd9b923b946c45c5a732fa6e053a59c0f9fcb40e.zip |
Import feature added (usable for things like /mnt/redhat)
Diffstat (limited to 'cobbler/api.py')
-rw-r--r-- | cobbler/api.py | 6 |
1 files changed, 4 insertions, 2 deletions
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): |