summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py6
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):