]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_volume_client: Preserve existing caps while authorize/deauthorize auth-id
authorKotresh HR <khiremat@redhat.com>
Thu, 26 Nov 2020 09:18:16 +0000 (14:48 +0530)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 16 Dec 2020 15:59:31 +0000 (07:59 -0800)
commit621fea6fda4f06876295f67d4767914332ff82d3
tree12ff716e73575a052290e06a5da4a572dd917c84
parentab18393db0b34506c3fd11346b6d0f1b781b9d99
pybind/ceph_volume_client: Preserve existing caps while authorize/deauthorize auth-id

Authorize/Deauthorize used to overwrite the caps of auth-id which would
end up deleting existing caps. This patch fixes the same by retaining
the existing caps by appending or deleting the new caps as needed.

Fixes: https://tracker.ceph.com/issues/48555
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 47100e528ef77e7e82dc9877424243dc6a7e7533)
src/pybind/ceph_volume_client.py