From 329e3d46e602117a9f95b9c3d67fff8cc22196fa Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 24 Dec 2019 09:22:42 -0600 Subject: [PATCH] mgr/test_orchestrator: fix update_mgrs assert Signed-off-by: Sage Weil --- src/pybind/mgr/test_orchestrator/module.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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]) -- 2.39.5