summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 2e20535..152d028 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -294,7 +294,9 @@ class BootSync:
# the list of repos to things that Anaconda can install from. This corresponds
# will replace "TEMPLATE::yum_repo_stanza" in a cobbler kickstart file.
buf = ""
- repos = profile.repos.split(" ")
+ repos = profile.repos
+ if type(profile.repos) == str:
+ repos = repos.split(" ")
for r in repos:
repo = self.repos.find(r)
if repo is None:
@@ -305,7 +307,9 @@ class BootSync:
def generate_config_stanza(self, profile):
# returns the line in post that would configure yum to use repos added with "cobbler repo add"
- repos = profile.repos.split(" ")
+ repos = profile.repos
+ if type(profiles.repos) == str:
+ repos = repos.split(" ")
buf = ""
for r in repos:
repo = self.repos.find(r)