Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/+non-https-syncs.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed sync issue where non https URLs were not allowed.
3 changes: 1 addition & 2 deletions pulp_python/app/tasks/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def create_bandersnatch_config(remote):
config = BandersnatchConfig()
config["mirror"]["master"] = remote.url
config["mirror"]["workers"] = str(remote.download_concurrency)
config["mirror"]["allow_non_https"] = "true"
if not config.has_section("plugins"):
config.add_section("plugins")
config["plugins"]["enabled"] = "blocklist_release\n"
Expand Down Expand Up @@ -120,7 +119,7 @@ async def run(self):
if not isinstance(downloader, HttpDownloader):
raise ValueError("Only HTTP(S) is supported for python syncing")

async with Master(url) as master:
async with Master(url, allow_non_https=True) as master:
# Replace the session with the remote's downloader session
old_session = master.session
master.session = downloader.session
Expand Down