From a181ad533dc557a616306423b5a1747cb1591b7f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 1 Mar 2020 07:23:54 -0600 Subject: [PATCH] mgr/test_orchestrator: update_foo -> apply_foo Signed-off-by: Sage Weil --- src/pybind/mgr/test_orchestrator/module.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pybind/mgr/test_orchestrator/module.py b/src/pybind/mgr/test_orchestrator/module.py index 3b19c90e349..237de0c7797 100644 --- a/src/pybind/mgr/test_orchestrator/module.py +++ b/src/pybind/mgr/test_orchestrator/module.py @@ -236,8 +236,8 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): # type: (orchestrator.NFSServiceSpec) -> None assert isinstance(spec.pool, str) - @deferred_write("update_nfs") - def update_nfs(self, spec): + @deferred_write("apply_nfs") + def apply_nfs(self, spec): pass @deferred_write("add_mds") @@ -274,15 +274,15 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): def remove_host(self, host): assert isinstance(host, six.string_types) - @deferred_write("update_mgrs") - def update_mgrs(self, spec): + @deferred_write("apply_mgr") + def apply_mgr(self, spec): # type: (orchestrator.ServiceSpec) -> None 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): + @deferred_write("apply_mon") + def apply_mon(self, spec): # type: (orchestrator.ServiceSpec) -> None assert not spec.placement.hosts or len(spec.placement.hosts) == spec.placement.count -- 2.39.5