Skip to content

Commit

Permalink
Fixes a db query in the replication task
Browse files Browse the repository at this point in the history
fixes: #5358
  • Loading branch information
dkliban authored and mdellweg committed May 15, 2024
1 parent c1c2eb6 commit b26e8b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/5358.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a bug related to replication of AppStream and BaseOS repositories of CentOS.
6 changes: 3 additions & 3 deletions pulpcore/app/replica.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ def remove_missing(self, names):

# Remove all the repositories and remotes of the missing distributions
repositories = list(
self.repository_model_cls.objects.filter(pulp_domain=self.domain).exclude(
name__in=names
)
self.repository_model_cls.objects.filter(
pulp_domain=self.domain, user_hidden=False
).exclude(name__in=names)
)
repository_ids = [
(repo.pk, self.app_label, self.repository_serializer_name) for repo in repositories
Expand Down

0 comments on commit b26e8b5

Please sign in to comment.