From 708e5e84076b55a2bd8b0d46e48b0d984954cc3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rados=C5=82aw=20Zarzy=C5=84ski?= Date: Thu, 24 Mar 2022 15:13:01 +0100 Subject: [PATCH] mon/AuthMonitor: don't forget about caps on "auth get". The issue came in 98b89120321059397798170f7ae2bf7c64e4f4b2. Signed-off-by: Radoslaw Zarzynski --- src/mon/AuthMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 16c3e8991b4..840ca38fcc4 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -932,7 +932,7 @@ bool AuthMonitor::preprocess_command(MonOpRequestRef op) ss << "failed to find " << entity_name << " in keyring"; r = -ENOENT; } else { - keyring.add(entity, entity_auth.key, entity_auth.pending_key); + keyring.add(entity, entity_auth); if (f) keyring.encode_formatted("auth", f.get(), rdata); else -- 2.39.5