]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: do not fail on user creation 34280/head
authorTatjana Dehler <tdehler@suse.com>
Fri, 27 Mar 2020 14:58:42 +0000 (15:58 +0100)
committerTatjana Dehler <tdehler@suse.com>
Mon, 30 Mar 2020 10:09:57 +0000 (12:09 +0200)
commit5f8cb5b73848cc33ec5ea7f60085eaf67370dd1c
tree96c4757bcc7e91239f7d5214a9b984ca842ac6eb
parent9267cc03e1b1612109dd57cc6ce74c34ed1f1d00
mgr/dashboard: do not fail on user creation

Accordingly to other Ceph commands do not fail on user
creation with a non-zero error code if the user already
exists.
Instead succeed and return the message 'User <username>
already exists'.

Fixes: https://tracker.ceph.com/issues/44502
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 9992faa9479b62f05f36352daf89f6e7541f29c9)
src/pybind/mgr/dashboard/services/access_control.py
src/pybind/mgr/dashboard/tests/test_access_control.py