]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: API Version changes do not apply to pre-defined methods (list, create... 41395/head
authorAashish Sharma <aashishsharma@localhost.localdomain>
Tue, 1 Jun 2021 05:09:24 +0000 (10:39 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Tue, 1 Jun 2021 05:09:24 +0000 (10:39 +0530)
commitdc4becfde8ddf8745b5d63c941236f95d9e64ba3
tree033ec0771bfc1d62126616098abc06f00d840c0f
parentbb52092cd37855a3dfcfae9287e231865e9af3fa
mgr/dashboard: API Version changes do not apply to pre-defined methods (list, create etc.)

Methods like list(), create(), get() etc doesn't get applied the version.Also for the endpoints that get the version changed, the docs and the request header has still the version v1.0+ in them. So with the version reduced it gives 415 error when trying to make the request. This PR fixes this issue.

Fixes: https://tracker.ceph.com/issues/50855
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/pybind/mgr/dashboard/controllers/__init__.py
src/pybind/mgr/dashboard/controllers/docs.py