]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: only need to invalidate once here
authorSage Weil <sage@redhat.com>
Sat, 7 Mar 2020 15:55:13 +0000 (09:55 -0600)
committerSage Weil <sage@redhat.com>
Sat, 7 Mar 2020 15:55:24 +0000 (09:55 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index 1f4361796e098baa4858fbe08f0be8d8de098db1..8cc007e6b176abaab87b38056474070ac61981b9 100644 (file)
@@ -1767,7 +1767,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                 host, name, 'unit',
                 ['--name', name, a],
                 error_ok=True)
-            self.cache.invalidate_host_daemons(host)
+        self.cache.invalidate_host_daemons(host)
         return "{} {} from host '{}'".format(action, name, host)
 
     def daemon_action(self, action, daemon_type, daemon_id):