mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
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:
parent
2cd8c3150b
commit
764ce71bd2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user