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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index ebf5a91..47e61ce 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -398,7 +398,7 @@ class BootSync:
repo = self.repos.find(r)
if repo is None:
continue
- if not (repo.local_filename is None and repo.local_filename != ""):
+ if not (repo.local_filename is None) or (repo.local_filename == ""):
buf = buf + "wget http://%s/cobbler_track/repo_mirror/%s/config.repo --output-document=/etc/yum.repos.d/%s.repo\n" % (self.settings.server, repo.name, repo.local_filename)
return buf