From: Sage Weil Date: Wed, 25 Mar 2020 15:39:59 +0000 (-0500) Subject: mgr/cephadm: fix 'orch ps --refresh' X-Git-Tag: v16.1.0~2795^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34182%2Fhead;p=ceph.git mgr/cephadm: fix 'orch ps --refresh' The use of host in the refresh loop was clobbering the argument value. Fixes: https://tracker.ceph.com/issues/44513 Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 38f369c121ca..1e8ee4e8fd96 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: