From 47590f79742b9cb91f876ad4507208a875ea2880 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 13 Oct 2006 16:09:31 -0400 Subject: 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. --- cobbler/cobbler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cobbler/cobbler.py') 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) -- cgit