Skip to content

Commit

Permalink
Fixed new distributions not showing up in content app
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrod3 authored and dralley committed Apr 27, 2021
1 parent 4d289be commit bca8b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/8636.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Content app now properly lists all distributions present
1 change: 1 addition & 0 deletions pulpcore/content/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ async def list_distributions(self, request):

if self.distribution_model is None:
base_paths = list(BaseDistribution.objects.values_list("base_path", flat=True))
base_paths.extend(list(Distribution.objects.values_list("base_path", flat=True)))
else:
base_paths = list(self.distribution_model.objects.values_list("base_path", flat=True))
directory_list = ["{}/".format(base_path) for base_path in base_paths]
Expand Down

0 comments on commit bca8b85

Please sign in to comment.