Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #976/16e104ff backport][2.10] Fixed 404 during sync from registry.redhat.io #997

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/974.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an HTTP 404 response during sync from registry.redhat.io.
4 changes: 2 additions & 2 deletions pulp_container/app/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ async def _run(self, handle_401=True, extra_data=None):

self.registry_auth["bearer"] = None
await self.update_token(response_auth_header, this_token, repo_name)
return await self._run(handle_401=False)
return await self._run(handle_401=False, extra_data=extra_data)
elif "Basic" in response_auth_header:
if self.remote.username:
basic = aiohttp.BasicAuth(self.remote.username, self.remote.password)
self.registry_auth["basic"] = basic.encode()
return await self._run(handle_401=False)
return await self._run(handle_401=False, extra_data=extra_data)
else:
raise
to_return = await self._handle_response(response)
Expand Down