]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: add daemon type predicate func to daemons_matching
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 24 Feb 2025 21:17:28 +0000 (16:17 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 27 Mar 2025 16:11:26 +0000 (12:11 -0400)
commit4c2278596d5b72a0c6e6c7e688f445fce59fc7de
tree428b996ebefc9d5b56eb5e18f39f4f2024480a5e
parent210a00a027ffb9614e5651220da5516d485f737d
cephadm: add daemon type predicate func to daemons_matching

Add a predicate function [1] argument, in the style of itertools,  to
the daemons_matching function to support filtering within the "fast
path" of the daemon listing on daemon type before additional information
about a daemon/service is done.

[1] - https://en.wikipedia.org/wiki/Boolean-valued_function

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