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 committed Apr 11, 2024
1 parent a687e1a commit 1ef67aa
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 1ef67aa

Please sign in to comment.