]> 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 16:00:31 +0000 (08:00 -0800)
commiteb2fa6934fc736f8abe6d9e237b0a14c9d877626
treea59f386a9a57be377a72a681b16755891277b25e
parent1de5caf2da9b06aa4f363f9706c693213a6ee59f
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