From: Kefu Chai Date: Sat, 24 Apr 2021 07:37:43 +0000 (+0800) Subject: mgr/cephadm: s/_hosts_with_daemon_inventory/_schedulable_hosts/ X-Git-Tag: v16.2.5~39^2~4^2^2~25 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=780bd9ed0d97f666948b116122b9c53b162f6265;p=ceph.git mgr/cephadm: s/_hosts_with_daemon_inventory/_schedulable_hosts/ `_hosts_with_daemon_inventory` was renamed to `_schedulable_hosts` in f260c48f723641a5f82c64c0e31451199aa191f8 which was merged before eebb842d0487660c93baf9eafda28a2f87e482f3 got merged, hence the regression. this change just updates the test with the new method name. Signed-off-by: Kefu Chai (cherry picked from commit 782fc0e7cac7229b2425e706c8f0fae6f4bb6884) --- diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index db9bfc4c7a599..eaba801a030e3 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -1004,7 +1004,7 @@ class TestCephadm(object): # being in offline/maint mode should disqualify hosts from being # candidates for scheduling candidates = [ - h.hostname for h in cephadm_module._hosts_with_daemon_inventory()] + h.hostname for h in cephadm_module._schedulable_hosts()] assert 'test2' not in candidates assert 'test3' not in candidates