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 <sage@redhat.com>
This commit is contained in:
Sage Weil 2020-03-25 10:39:59 -05:00
parent 2cd8c3150b
commit 764ce71bd2

View File

@ -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: