From: Sage Weil Date: Tue, 24 Dec 2019 15:22:42 +0000 (-0600) Subject: mgr/test_orchestrator: fix update_mgrs assert X-Git-Tag: v15.1.0~365^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=329e3d46e602117a9f95b9c3d67fff8cc22196fa;p=ceph.git mgr/test_orchestrator: fix update_mgrs assert Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/test_orchestrator/module.py b/src/pybind/mgr/test_orchestrator/module.py index 7f392f8127944..9e52eefc4b5fd 100644 --- a/src/pybind/mgr/test_orchestrator/module.py +++ b/src/pybind/mgr/test_orchestrator/module.py @@ -261,11 +261,11 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): @deferred_write("update_mgrs") def update_mgrs(self, spec): - assert not spec.nodes or len(spec.placement.nodes) == spec.placement.count - assert all([isinstance(h, str) for h in spec.nodes]) + assert not spec.placement.hosts or len(spec.placement.hosts) == spec.placement.count + assert all([isinstance(h, str) for h in spec.placement.hosts]) @deferred_write("update_mons") def update_mons(self, spec): - assert not spec.nodes or len(spec.placement.nodes) == spec.placement.count - assert all([isinstance(h[0], str) for h in spec.nodes]) - assert all([isinstance(h[1], str) or h[1] is None for h in spec.nodes]) + assert not spec.placement.hosts or len(spec.placement.hosts) == spec.placement.count + assert all([isinstance(h[0], str) for h in spec.placement.hosts]) + assert all([isinstance(h[1], str) or h[1] is None for h in spec.placement.hosts])