summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cobbler/action_sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 152d0288..acba7435 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -295,7 +295,7 @@ class BootSync:
# will replace "TEMPLATE::yum_repo_stanza" in a cobbler kickstart file.
buf = ""
repos = profile.repos
- if type(profile.repos) == str:
+ if type(repos) == str:
repos = repos.split(" ")
for r in repos:
repo = self.repos.find(r)
@@ -308,7 +308,7 @@ 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
- if type(profiles.repos) == str:
+ if type(repos) == str:
repos = repos.split(" ")
buf = ""
for r in repos: