Skip to content

Commit

Permalink
Fix sync on failed namespace avatar downloads
Browse files Browse the repository at this point in the history
fixes: #1868
(cherry picked from commit 2f09460)
  • Loading branch information
gerrod3 authored and mdellweg committed May 29, 2024
1 parent ad6ea67 commit f37706b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/1868.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed sync failing on undownloadable namespace avatars.
2 changes: 1 addition & 1 deletion pulp_ansible/app/tasks/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def _pre_save(self, batch):
# Check to see if avatar failed to download, update metadata if so,
# so that the avatar should be attemtped to be downloaded again.
if da.deferred_download:
d_content.d_artifacts = None
d_content.d_artifacts = []
d_content.content.avatar_sha256 = None
d_content.content.metadata_sha256 = None

Expand Down

0 comments on commit f37706b

Please sign in to comment.