Skip to content

Commit

Permalink
Decouple plugin filter apidoc from "bindings"
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg authored and daviddavis committed Aug 11, 2020
1 parent 1acd05b commit fb776ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/7306.bugfix
@@ -0,0 +1 @@
Fixed plugin filtering in bindings to work independently from "bindings" parameter.
4 changes: 2 additions & 2 deletions pulpcore/openapi/__init__.py
Expand Up @@ -266,8 +266,8 @@ def parse(self, request, public):

# Adding plugin filter
plugins = None
# /pulp/api/v3/docs/api.json?bindings&plugin=pulp_file
if request and "bindings" in request.query_params:
# /pulp/api/v3/docs/api.json?plugin=pulp_file
if request and "plugin" in request.query_params:
plugins = [request.query_params["plugin"]]

is_public = None if public else request
Expand Down

0 comments on commit fb776ed

Please sign in to comment.