]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix subuser creation via dashboard 62086/head
authorHannes Baum <hannes.baum@cloudandheat.com>
Wed, 6 Nov 2024 08:46:09 +0000 (09:46 +0100)
committerAashish Sharma <Aashish.Sharma1@ibm.com>
Wed, 12 Mar 2025 12:30:24 +0000 (18:00 +0530)
commite86633d37f422536ca7548bfd352a49146f295b0
tree3791093d049d4e140e1e5460e4b5e0c1133899b5
parentc39c6147ecadd6f4222c652e35e624a242f7e3e0
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>
(cherry picked from commit 90e221d0b53ad137e912b8cbd84935a8755f1fe7)
qa/tasks/mgr/dashboard/test_rgw.py
src/pybind/mgr/dashboard/controllers/rgw.py