]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix bug when creating S3 keys 22468/head
authorVolker Theile <vtheile@suse.com>
Fri, 8 Jun 2018 11:44:45 +0000 (13:44 +0200)
committerVolker Theile <vtheile@suse.com>
Thu, 14 Jun 2018 08:52:47 +0000 (10:52 +0200)
commitdaf2a1969d5cd8fa9067be509fe01296ccd7155f
treef2d3b1ed505cee55e55065faf50ab2f3a7ea62a2
parentc16df3100e9fb7c9b15c308e2821b181df3ab617
mgr/dashboard: Fix bug when creating S3 keys

Currently a new subuser is created if a key is created for the main user. That's because the uid is set as subuser parameter, too.
To fix that the key's user name, e.g. test2 or test1:subuser2, must be splitted into its user and subuser parts.

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-user.service.ts