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 <adking@redhat.com>
(cherry picked from commit
141072bc71b23d10554cb3b3414451a7eda76ce4)
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()