diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 38f369c121c..1e8ee4e8fd9 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1915,8 +1915,8 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule): if host: self._refresh_host_daemons(host) else: - for host, hi in self.inventory.items(): - self._refresh_host_daemons(host) + for hostname, hi in self.inventory.items(): + self._refresh_host_daemons(hostname) result = [] for h, dm in self.cache.daemons.items(): if host and h != host: