From 722807409a9ff252fb865190b48fa1e4f3bfa5e8 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 7 Apr 2014 15:12:43 -0400 Subject: [PATCH] set overrides in cli.py Signed-off-by: Alfredo Deza --- ceph_deploy/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceph_deploy/cli.py b/ceph_deploy/cli.py index e8b3446..bda366e 100644 --- a/ceph_deploy/cli.py +++ b/ceph_deploy/cli.py @@ -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, " ")) -- 2.47.3