]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: split cli parsing & ctx setup from logging setup
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 6 Jan 2022 21:26:37 +0000 (16:26 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 7 Jan 2022 15:43:51 +0000 (10:43 -0500)
commit110d294dc607ece48291d96bda08c5cce2c8ecd7
treeef3f3a47c681ba9cbc3b180b3d3bbd42991cd129
parentaf5f475a45cf5fa2f747862d9958cc1d7846bbf9
cephadm: split cli parsing & ctx setup from logging setup

Split the parsing and processing of the CLI from the logging
setup in the cephadm main func. Move logging setup to occur after
we've determined that there's a runnable command func.

This is preparatory work to allow running `cephadm --help` without being
root.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm