From 91a252dd432a9bdb44c55a9f3b66ff9b43eae9ff Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 1 Oct 2019 11:34:22 -0500 Subject: [PATCH] mon/ConfigMonitor: allow entity type only for 'config get' e.g., 'ceph config get osd debug_osd' to return the config value that would apply to a generic OSD (either from the osd or global section of the config). Signed-off-by: Sage Weil --- src/mon/ConfigMonitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/ConfigMonitor.cc b/src/mon/ConfigMonitor.cc index c1814b28eb872..aeaa74ce1a8e5 100644 --- a/src/mon/ConfigMonitor.cc +++ b/src/mon/ConfigMonitor.cc @@ -257,7 +257,8 @@ bool ConfigMonitor::preprocess_command(MonOpRequestRef op) cmd_getval(g_ceph_context, cmdmap, "who", who); EntityName entity; - if (!entity.from_str(who)) { + if (!entity.from_str(who) && + !entity.from_str(who + ".")) { ss << "unrecognized entity '" << who << "'"; err = -EINVAL; goto reply; -- 2.39.5