summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-13 16:09:31 -0400
committerJim Meyering <jim@meyering.net>2006-10-13 16:09:31 -0400
commit47590f79742b9cb91f876ad4507208a875ea2880 (patch)
tree81b346bd0ae6bb48fb0b2108b68b1580be40a5e9 /cobbler/cobbler.py
parentcd9b923b946c45c5a732fa6e053a59c0f9fcb40e (diff)
downloadthird_party-cobbler-47590f79742b9cb91f876ad4507208a875ea2880.tar.gz
third_party-cobbler-47590f79742b9cb91f876ad4507208a875ea2880.tar.xz
third_party-cobbler-47590f79742b9cb91f876ad4507208a875ea2880.zip
Lots of work on importing rsync mirrors, including preliminary code to guess
kickstart files and assign them for distributions that we know how to minimally kickstart.
Diffstat (limited to 'cobbler/cobbler.py')
-rwxr-xr-xcobbler/cobbler.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index e7a512c..d31924c 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -152,6 +152,9 @@ class BootCLI:
"""
self.temp_path = None
self.temp_mirror = None
+ self.temp_mirror_name = None
+ def set_mirror_name(a):
+ self.temp_mirror_name = a
def set_mirror(a):
self.temp_mirror = a
def set_path(a):
@@ -160,7 +163,9 @@ class BootCLI:
return True
return False
def go_import():
- return self.api.import_tree(self.temp_path,self.temp_mirror)
+ return self.api.import_tree(self.temp_path,
+ self.temp_mirror,
+ self.temp_mirror_name)
commands = {
'--path' : lambda(a): set_path(a),
'--mirror' : lambda(a): set_mirror(a)