From 141072bc71b23d10554cb3b3414451a7eda76ce4 Mon Sep 17 00:00:00 2001 From: Adam King Date: Mon, 19 Jul 2021 12:14:16 -0400 Subject: [PATCH] mgr/cephadm: fix unit test for don't touch offline hosts We use an offline_hosts set for marking offline hosts rather than the host status so changing this unit test to reflect that Signed-off-by: Adam King --- src/pybind/mgr/cephadm/tests/test_cephadm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index b80500b108b..e6082a8c778 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -1108,7 +1108,7 @@ spec: assert len(cephadm_module.cache.get_daemons_by_type('mgr')) == 3 # put one host in offline state and one host in maintenance state - cephadm_module.inventory._inventory['test2']['status'] = 'offline' + cephadm_module.offline_hosts = {'test2'} cephadm_module.inventory._inventory['test3']['status'] = 'maintenance' cephadm_module.inventory.save() -- 2.39.5