Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
prog=parser.prog,
cluster='ceph',
)
+
return parser
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, " "))