]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: simplify spec apply
authorSage Weil <sage@redhat.com>
Sun, 1 Mar 2020 03:09:57 +0000 (21:09 -0600)
committerSage Weil <sage@redhat.com>
Sun, 1 Mar 2020 14:10:54 +0000 (08:10 -0600)
commit05035638f8829259653568aadddeb4efd6efa900
treeb4baf4a218b2666948ffa6ee2a07983687730ce4
parentc6af0b4ac97078a9be5b88f1176a12939605f08c
mgr/cephadm: simplify spec apply

- Teach _apply_service how to pick the create (and config) functions, so
  that we don't need any weird wrappers in the callers.
- Replace trigger_deploy() and _apply_services() with a simpler
  _apply_all_services()
- Drop all of the per-type _apply_foo() methods.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py