]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/AuthMonitor: don't forget about caps on "auth get".
authorRadosław Zarzyński <rzarzyns@redhat.com>
Thu, 24 Mar 2022 14:13:01 +0000 (15:13 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 12 Sep 2022 17:03:32 +0000 (17:03 +0000)
The issue came in 98b89120321059397798170f7ae2bf7c64e4f4b2.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/mon/AuthMonitor.cc

index 16c3e8991b4a7869104e736d2c827822cb04edc1..840ca38fcc4d6fa9a3c61e77965c631bedec743b 100644 (file)
@@ -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