From: Alfredo Deza Date: Mon, 7 Apr 2014 19:12:43 +0000 (-0400) Subject: set overrides in cli.py X-Git-Tag: v1.5.0~15^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=722807409a9ff252fb865190b48fa1e4f3bfa5e8;p=ceph-deploy.git set overrides in cli.py Signed-off-by: Alfredo Deza --- 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, " "))