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 6b6b7ab4a94..78447f87b6f 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"} if result["openapi"].split(".", maxsplit=2)[:-1] == ["3", "0"]: result["info"]["license"].pop("identifier", None)