]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: replace remaining _get_daemons() with daemon cache
authorSage Weil <sage@redhat.com>
Fri, 14 Feb 2020 17:08:18 +0000 (11:08 -0600)
committerSage Weil <sage@redhat.com>
Tue, 18 Feb 2020 21:49:56 +0000 (15:49 -0600)
commita9917454183670715e32220394e69b9f1a02d516
treeb62a31cec78c8e6e72b56e78b777cf92709f617a
parent782a71e32c930071d5be04cab0f8a0089316456e
mgr/cephadm: replace remaining _get_daemons() with daemon cache

New function _get_daemons_by_type() returns immediately with a result
from the cache.

Remove the with_daemons decorator.

Push daemon list fetch into _add_new_daemon.

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