[et-mgmt-tools] cobbler patch

Al Tobey tobert at gmail.com
Sun Sep 23 22:42:51 UTC 2007


Importing the FC7 DVD on FC7 fails for me if I use the automatically
created/mounted mountpoint that has spaces in it (Fedora 7 x86_64
DVD).   Simply adding quotes to action_import.py fixes the problem.

-Al

diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index b9aaf0e..267207a 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -26,7 +26,7 @@ import shutil
 from rhpl.translate import _, N_, textdomain, utf8

 WGET_CMD = "wget --mirror --no-parent --no-host-directories
--directory-prefix %s/%s %s"
-RSYNC_CMD =  "rsync -a %s %s %s/ks_mirror/%s
--exclude-from=/etc/cobbler/rsync.exclude --
+RSYNC_CMD =  "rsync -a %s '%s' %s/ks_mirror/%s
--exclude-from=/etc/cobbler/rsync.exclude

 TRY_LIST = [
    "Fedora", "Packages", "RedHat", "Client", "Server", "Centos", "CentOS",




More information about the et-mgmt-tools mailing list