summaryrefslogtreecommitdiffstats
path: root/cobbler/item_profile.py
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/item_profile.py
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/item_profile.py')
-rw-r--r--cobbler/item_profile.py7
1 files changed, 5 insertions, 2 deletions
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