From 38f3db16aab14b8708bee4cb0db294215eea6585 Mon Sep 17 00:00:00 2001 From: Grant Gainey Date: Tue, 10 Oct 2023 15:17:30 -0400 Subject: [PATCH] Removed extraneous refs to UpdateReference/Collection.domain. fixes #3275. --- CHANGES/3275.bugfix | 1 + pulp_rpm/app/tasks/synchronizing.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 CHANGES/3275.bugfix diff --git a/CHANGES/3275.bugfix b/CHANGES/3275.bugfix new file mode 100644 index 000000000..a8704823a --- /dev/null +++ b/CHANGES/3275.bugfix @@ -0,0 +1 @@ +Fixed sporadic error due to to set domain on non-Content objects at sync time. diff --git a/pulp_rpm/app/tasks/synchronizing.py b/pulp_rpm/app/tasks/synchronizing.py index 3375f9c69..6489b992f 100644 --- a/pulp_rpm/app/tasks/synchronizing.py +++ b/pulp_rpm/app/tasks/synchronizing.py @@ -1352,7 +1352,6 @@ async def parse_advisories(self, result): if coll_dict["name"] is None: coll_dict["name"] = "collection-autofill-" + uuid.uuid4().hex[:12] coll = UpdateCollection(**coll_dict) - coll.pulp_domain = get_domain() for package in collection.packages: pkg_dict = UpdateCollectionPackage.createrepo_to_dict(package) @@ -1362,7 +1361,6 @@ async def parse_advisories(self, result): for reference in update.references: reference_dict = UpdateReference.createrepo_to_dict(reference) ref = UpdateReference(**reference_dict) - coll.pulp_domain = get_domain() future_relations["references"].append(ref) await advisories_pb.aincrement()