]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
AuthMonitor: make code for updating caps reusable
authorRishabh Dave <ridave@redhat.com>
Wed, 9 Jun 2021 07:55:02 +0000 (13:25 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 19 Jun 2023 11:26:35 +0000 (16:56 +0530)
commit9d3dd63590a4d87b0b74104d8006954ce7ef8ae4
tree8595a73e13ca90514b3b26c77f8f00b05840bb4b
parent020ecffd3c8d55a7ecbb360c2a2e827fdd922774
AuthMonitor: make code for updating caps reusable

Move the code for "ceph auth caps" command to a separate function so
that the code can be reused to update caps.

Most of the code here is same as the code for creating new entity, so
let's modify this method to also create an entity. Also, create helper
methods to update and create an entity.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h