]> git.apps.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:57:46 +0000 (07:57 -0800)
commit04c41845a07fab95a3de330ad841fbb64e26e9d5
tree0d9e2710023eef5af60adced0ef97bb945f93d14
parent04511379d62e932e956b8b6247b1f6e067f1a328
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