Pulp incorrectly namespaces Detail model endpoints if there is no master viewset
Suppose you have a viewset for a Detail model that doesn't inherit from the Master viewset (ContentViewset in this case):
class DistributionTreeViewSet(NamedModelViewSet, mixins.RetrieveModelMixin, mixins.ListModelMixin, mixins.DestroyModelMixin): """ Distribution Tree Viewset. """ endpoint_name = 'distribution_trees' queryset = DistributionTree.objects.all() serializer_class = DistributionTreeSerializer
Pulp will automatically try to define the endpoint using master_endpoint (which doesn't exist), app_label, and endpoint_name. In this case, this ends up being "/pulp/api/v3/distribution_trees/rpm/distribution_trees/" which is probably not what the plugin writer wants.
Please register to edit this issue