Skip to content

Commit

Permalink
Fix a uniqueness violation for is_highest
Browse files Browse the repository at this point in the history
When syncing content, we need to ignore the upstream status of is_highest.

[noissue]

(cherry picked from commit 8d7550b)
  • Loading branch information
mdellweg authored and patchback[bot] committed Apr 10, 2024
1 parent a687e1a commit ef28247
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pulp_ansible/app/tasks/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,5 +1215,6 @@ def _post_save(self, batch):
continue
setattr(collection_version, attr_name, attr_value)

collection_version.is_highest = False
collection_version.save()
_update_highest_version(collection_version)

0 comments on commit ef28247

Please sign in to comment.