]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd/action/Kernel.cc
update sources to v12.2.1
[ceph.git] / ceph / src / tools / rbd / action / Kernel.cc
index 1f1951fc8842539b269ca3d2b00d80d4bff87623..4f58cc27d83c87dabc7219a8529a782f96dbc3a5 100644 (file)
@@ -414,7 +414,8 @@ int execute_map(const po::variables_map &vm) {
   }
 
   // parse default options first so they can be overwritten by cli options
-  char *default_map_options = strdup(g_conf->rbd_default_map_options.c_str());
+  char *default_map_options = strdup(g_conf->get_val<std::string>(
+    "rbd_default_map_options").c_str());
   BOOST_SCOPE_EXIT( (default_map_options) ) {
     free(default_map_options);
   } BOOST_SCOPE_EXIT_END;