From 031516fa72fe82b6379ae940dc13f8dce35cd25d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 14 Feb 2020 12:50:23 -0600 Subject: [PATCH] mgr/cephadm: implete hacky 'refresh=True' path Signed-off-by: Sage Weil --- src/pybind/mgr/cephadm/module.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 382dae06888..0f52d4d90c9 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1379,8 +1379,12 @@ class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin): def list_daemons(self, daemon_type=None, daemon_id=None, host=None, refresh=False): if refresh: - ######### FIXME ######### - raise NotImplementedError() + # ugly sync path, FIXME someday perhaps? + if host: + self._refresh_host_daemons(host) + else: + for host, hi in self.inventory.items(): + self._refresh_host_daemons(host) result = [] for h, di in self.daemon_cache.items(): if host and h != host: -- 2.47.3