]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-daemon: Only run in the __main__ scope
authorThomas Bechtold <tbechtold@suse.com>
Thu, 7 Nov 2019 09:50:04 +0000 (10:50 +0100)
committerThomas Bechtold <tbechtold@suse.com>
Thu, 7 Nov 2019 09:51:46 +0000 (10:51 +0100)
commit55541d3f866ba2a2287179ff47555ff8a2ab21c1
tree0bd58aea35e7480bb5575276a3772f500f8f6cb9
parent8cb1f6bddb5f7f6f90da337659c2d2dcd3d8b469
ceph-daemon: Only run in the __main__ scope

That makes unit testing easier to setup because the code is not loaded
when ceph-daemon gets imported. Instead it is only loaded when
executed.
For that, the parser also moved to a function instead of being on
module level.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
src/ceph-daemon