summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_reposync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 3c36bb2..fb6fdf6 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -105,7 +105,7 @@ class RepoSync:
return True
dest_path = os.path.join(self.settings.webdir, "repo_mirror", repo.name)
spacer = ""
- if repo.mirror.find("rsync://") != -1:
+ if not repo.mirror.startswith("rsync://") and not repo.mirror.startswith("/"):
spacer = "-e ssh"
if not repo.mirror.endswith("/"):
repo.mirror = "%s/" % repo.mirror