mgr/cephadm: only need to invalidate once here

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2020-03-07 09:55:13 -06:00
parent a09e01fd21
commit 1ab85b7fde

View 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):