]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: tighten initialization of keyring setting
authorJohn Spray <john.spray@redhat.com>
Fri, 7 Jul 2017 14:08:07 +0000 (10:08 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 21 Jul 2017 10:27:24 +0000 (06:27 -0400)
We should not proceed if setting this fails.  Also
the meta=false setting is not what you want when
calling into set_val after initialization, I'm not sure
how that ever worked!

Signed-off-by: John Spray <john.spray@redhat.com>
src/ceph_mgr.cc

index 051bed7094647f808f1a9a3a20e8724d5f1fdd3f..6b72cf2f9bd8ddf26eebb9caecf0a24dd6723468 100644 (file)
@@ -45,7 +45,7 @@ int main(int argc, const char **argv)
                         CODE_ENVIRONMENT_DAEMON, 0,
                         "mgr_data");
   // For consumption by KeyRing::from_ceph_context in MonClient
-  g_conf->set_val("keyring", "$mgr_data/keyring", false);
+  g_conf->set_val_or_die("keyring", "$mgr_data/keyring");
 
   // Handle --help
   if ((args.size() == 1 && (std::string(args[0]) == "--help" || std::string(args[0]) == "-h"))) {