]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: fix subuser creation via dashboard
authorHannes Baum <hannes.baum@cloudandheat.com>
Wed, 6 Nov 2024 08:46:09 +0000 (09:46 +0100)
committerAashish Sharma <Aashish.Sharma1@ibm.com>
Thu, 13 Mar 2025 08:39:22 +0000 (14:09 +0530)
commit2036e87b91f39f865e9ecb7ecd1a334e9235f644
tree4fed5a228b4a6a25358e6462afe52d85fb44fbf4
parentaa0fc9b6e84bed4b1d7c97cadf14391fb553f15c
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