]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: fix lack of normalize_key_name() apply. 33558/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 26 Feb 2020 16:17:17 +0000 (19:17 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Wed, 26 Feb 2020 16:17:17 +0000 (19:17 +0300)
This is a fix to regression caused by:
224cafc56d2ffe16effb6ba3d230eb586ae8d595

In fact md_config_t::_get_val was lacking of proper normalize_key_name()
call.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/common/config.cc

index d073192bc46b152d94e2a830a0cf0cd7e02e1f16..eb6b721e12e39f4c57437104be1fe30d6d073ded 100644 (file)
@@ -1047,7 +1047,7 @@ Option::value_t md_config_t::_get_val(
   // In key names, leading and trailing whitespace are not significant.
   string k(ConfFile::normalize_key_name(key));
 
-  const Option *o = find_option(key);
+  const Option *o = find_option(k);
   if (!o) {
     // not a valid config option
     return Option::value_t(boost::blank());