From d1223b3ead6e9cac3a424de9fe0ba6542289e530 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 31 Jan 2020 11:59:10 +0100 Subject: [PATCH] mgr/cephadm: Don't duplicate cache entries in _create_daemon Signed-off-by: Sebastian Wagner --- src/pybind/mgr/cephadm/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index ac7d8a3c973dd..e9274236920a7 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1581,6 +1581,7 @@ class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin): } data = self.service_cache[host].data if data: + data = [d for d in data if d['name'] != sd['name']] data.append(sd) else: data = [sd] -- 2.39.5