diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-11-29 14:48:20 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-11-29 14:48:20 -0500 |
commit | bddd3d6affa106b800f9ad1ec25f0dcfed750604 (patch) | |
tree | 4a879d835f5d7a8c189863c8e7db4fdf18e17f9e /cobbler/action_sync.py | |
parent | e451ca8a9d28db9cd69542cd9a96e62cda686494 (diff) | |
download | third_party-cobbler-bddd3d6affa106b800f9ad1ec25f0dcfed750604.tar.gz third_party-cobbler-bddd3d6affa106b800f9ad1ec25f0dcfed750604.tar.xz third_party-cobbler-bddd3d6affa106b800f9ad1ec25f0dcfed750604.zip |
Quote wget args to avoid creating stray files.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r-- | cobbler/action_sync.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index ad4143d..f81c2cd 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -386,9 +386,9 @@ class BootSync: # FIXME: watcher is more of a request than a packaged file # we should eventually package something and let it do something important" - pattern1 = "wget http://%s/cblr/watcher.py?%s_%s=%s -b" - pattern2 = "wget http://%s/cgi-bin/cobbler/nopxe.cgi?system=%s -b" - pattern3 = "wget http://%s/cobbler/%s/%s/ks.cfg -O /root/cobbler.ks" + pattern1 = "wget \"http://%s/cblr/watcher.py?%s_%s=%s\" -b" + pattern2 = "wget \"http://%s/cgi-bin/cobbler/nopxe.cgi?system=%s\" -b" + pattern3 = "wget \"http://%s/cobbler/%s/%s/ks.cfg\" -O /root/cobbler.ks" blend_this = profile if system: @@ -500,7 +500,7 @@ class BootSync: name = c.split("/")[-1].replace(".repo","") # add the line to create the yum config file on the target box conf = self.get_repo_config_file(blended["server"],urlseg,blended["name"],name) - buf = buf + "wget %s --output-document=/etc/yum.repos.d/%s.repo\n" % (conf, name) + buf = buf + "wget \"%s\" --output-document=/etc/yum.repos.d/%s.repo\n" % (conf, name) return buf |