]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix subuser creation via dashboard 60635/head
authorHannes Baum <hannes.baum@cloudandheat.com>
Wed, 6 Nov 2024 08:46:09 +0000 (09:46 +0100)
committerHannes Baum <hannes.baum@cloudandheat.com>
Thu, 12 Dec 2024 08:27:18 +0000 (09:27 +0100)
commit90e221d0b53ad137e912b8cbd84935a8755f1fe7
tree0124ad3e2317b2cf9c415c2970ea2198cbf336a7
parentc8e3946117c9c26068870ba4a4bc6b3d361c4e4f
mgr: fix subuser creation via dashboard

Subusers couldn't be created through the dashboard, because the get call was overwritten with Python magic due to it being the function under the HTTP call.
The get function was therefore split into an "external" and "internal" function, whereas one
can be used by functions without triggering the magic. Since the user object was then returned correctly, json.loads could be removed.

Signed-off-by: Hannes Baum <hannes.baum@cloudandheat.com>
qa/tasks/mgr/dashboard/test_rgw.py
src/pybind/mgr/dashboard/controllers/rgw.py