]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
set overrides in cli.py
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 7 Apr 2014 19:12:43 +0000 (15:12 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 7 Apr 2014 19:12:43 +0000 (15:12 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/cli.py

index e8b3446576d6da31903964984a551b11bd0418ff..bda366ecf40b2933a6e7cfc54779262ae32c1f37 100644 (file)
@@ -92,6 +92,7 @@ def get_parser():
         prog=parser.prog,
         cluster='ceph',
         )
+
     return parser
 
 
@@ -131,6 +132,13 @@ def main(args=None, namespace=None):
     root_logger.addHandler(sh)
     root_logger.addHandler(fh)
 
+    # Reads from the config file and sets values for the global
+    # flags and the given sub-command
+    # the one flag that will never work regardless of the config settings is
+    # logging because we cannot set it before hand since the logging config is
+    # not ready yet. This is the earliest we can do.
+    args = ceph_deploy.conf.cephdeploy.set_overrides(args)
+
     LOG.info("Invoked (%s): %s" % (
         ceph_deploy.__version__,
         join(sys.argv, " "))