]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: s/_hosts_with_daemon_inventory/_schedulable_hosts/ 41011/head
authorKefu Chai <kchai@redhat.com>
Sat, 24 Apr 2021 07:37:43 +0000 (15:37 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 24 Apr 2021 07:40:03 +0000 (15:40 +0800)
`_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 <kchai@redhat.com>
src/pybind/mgr/cephadm/tests/test_cephadm.py

index db9bfc4c7a599bd8de27f294111f0f4532141f33..eaba801a030e383a0c69c6723c722b34b852d8ad 100644 (file)
@@ -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