]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: refactor the infer_local_ceph_image function
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 24 Feb 2025 21:26:18 +0000 (16:26 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 27 Mar 2025 16:11:26 +0000 (12:11 -0400)
commitc405e7034465b0e51931d4e6e94ffebb3f16c43f
tree405c293b571a32d5990ffa483917e9b78712dd18
parent5b34735432724292ecf76385b209004453f60d67
cephadm: refactor the infer_local_ceph_image function

Refactor the infer_local_ceph_image function to use the low level
daemons_matching function and avoid ever looping over the list of
running daemons multiple times. Clean up the logic in
infer_local_ceph_image such that it better matches the behavior
in the original doc string as well as cleaning up said doc string.

Fixes: https://tracker.ceph.com/issues/69278
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py
src/cephadm/tests/fixtures.py
src/cephadm/tests/test_cephadm.py