summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-03-02 11:01:52 -0500
committerJim Meyering <jim@meyering.net>2007-03-02 11:01:52 -0500
commit6626e864252cfa30b8d19cb2bd9c2ed74dacded6 (patch)
tree2c194efbf0042189eaff25bb855d40d62507624f /cobbler
parented3576da0f4dc3ad8e8acb47717246b626f2f212 (diff)
downloadthird_party-cobbler-6626e864252cfa30b8d19cb2bd9c2ed74dacded6.tar.gz
third_party-cobbler-6626e864252cfa30b8d19cb2bd9c2ed74dacded6.tar.xz
third_party-cobbler-6626e864252cfa30b8d19cb2bd9c2ed74dacded6.zip
Fixes to import tree URL's and repo parameter splitting, thanks to et-mgmt-tools list folks for pointing these out.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_import.py2
-rw-r--r--cobbler/item_profile.py7
2 files changed, 6 insertions, 3 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 721bb7b..ff777d4 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -185,7 +185,7 @@ class Importer:
tokens = tokens[:-2]
base = "/".join(tokens)
base = base.replace(self.settings.webdir,"")
- tree = "tree=http://%s/%s" % (self.settings.server, base)
+ tree = "tree=http://%s/cobbler_track/%s" % (self.settings.server, base)
print "*** KICKSTART TREE = %s" % tree
profile.set_ksmeta(tree)
self.serialize_counter = self.serialize_counter + 1
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py
index c6cb13a..e3df8c8 100644
--- a/cobbler/item_profile.py
+++ b/cobbler/item_profile.py
@@ -86,11 +86,14 @@ class Profile(item.Item):
def set_repos(self,repos):
if type(repos) != list:
# allow backwards compatibility support of string input
- repolist = repos.split(" ")
+ repolist = repos.split(None)
else:
repolist = repos
ok = True
- repolist.remove('')
+ try:
+ repolist.remove('')
+ except:
+ pass
for r in repolist:
if not self.config.repos().find(r):
ok = False