From 1ef67aaa0f0605b85934033ef8bbc15417b5d35b Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Tue, 12 Dec 2023 15:22:29 +0100 Subject: [PATCH] Fix a uniqueness violation for is_highest When syncing content, we need to ignore the upstream status of is_highest. [noissue] (cherry picked from commit 8d7550b3afedf4eb62abdff8b03a197605320392) --- pulp_ansible/app/tasks/collections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pulp_ansible/app/tasks/collections.py b/pulp_ansible/app/tasks/collections.py index 82b6d9adf..4ecc63aa3 100644 --- a/pulp_ansible/app/tasks/collections.py +++ b/pulp_ansible/app/tasks/collections.py @@ -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)