]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
AuthMonitor: add a method for encoding keyring
authorRishabh Dave <ridave@redhat.com>
Wed, 9 Jun 2021 07:51:45 +0000 (13:21 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 16 Jun 2023 20:46:32 +0000 (02:16 +0530)
commit9df4eabfe919f4eaf3e159a57915bbc865abae21
tree5107e511a4e0819a185899a8785958eed379ec35
parent203a9ae1b391c90c5da1a1997bc169ff27852764
AuthMonitor: add a method for encoding keyring

Instead of repeating same lines of code to encode entity's auth keyring
(or just key) before printing, add a method for this and use it instead.
This commit is nothing more than refactoring to avoid duplication and
improve readability; it shouldn't make any functional changes.

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