]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/test_orchestrator: fix update_mgrs assert 32417/head
authorSage Weil <sage@redhat.com>
Tue, 24 Dec 2019 15:22:42 +0000 (09:22 -0600)
committerSage Weil <sage@redhat.com>
Wed, 25 Dec 2019 15:48:45 +0000 (09:48 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/test_orchestrator/module.py

index 7f392f812794489b0924a32b06d447952052b78b..9e52eefc4b5fdd52f53071f046a4a76c4cb56c11 100644 (file)
@@ -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])