From: Sage Weil Date: Sun, 1 Mar 2020 13:23:54 +0000 (-0600) Subject: mgr/test_orchestrator: update_foo -> apply_foo X-Git-Tag: v15.1.1~189^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a181ad533dc557a616306423b5a1747cb1591b7f;p=ceph.git mgr/test_orchestrator: update_foo -> apply_foo Signed-off-by: Sage Weil --- 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