Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed extraneous refs to UpdateReference/Collection.domain. #3276

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/3275.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed sporadic error due to to set domain on non-Content objects at sync time.
2 changes: 0 additions & 2 deletions pulp_rpm/app/tasks/synchronizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down
Loading