diff --git a/CHANGES/+fix-openapi-logo-url.bugfix b/CHANGES/+fix-openapi-logo-url.bugfix new file mode 100644 index 00000000000..ac98121f4cd --- /dev/null +++ b/CHANGES/+fix-openapi-logo-url.bugfix @@ -0,0 +1 @@ +Fixed the url of the generated openapi schemas when using `pulpcore-manager openapi`. diff --git a/pulpcore/openapi/hooks.py b/pulpcore/openapi/hooks.py index e6b9d106563..791c36dbb63 100644 --- a/pulpcore/openapi/hooks.py +++ b/pulpcore/openapi/hooks.py @@ -3,9 +3,7 @@ def add_info_hook(result, generator, request, **kwargs): # Basically I'm doing it to get pulp logo at redoc page - result["info"]["x-logo"] = { - "url": "https://pulpproject.org/pulp-docs/docs/assets/pulp_logo_icon.svg" - } + result["info"]["x-logo"] = {"url": "https://pulpproject.org/assets/pulp_logo_icon.svg"} # Adding plugin version config result["info"]["x-pulp-app-versions"] = {app.label: app.version for app in request.apps}