From: Sebastian Wagner Date: Fri, 31 Jan 2020 10:59:10 +0000 (+0100) Subject: mgr/cephadm: Don't duplicate cache entries in _create_daemon X-Git-Tag: v15.1.1~568^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32859%2Fhead;p=ceph.git mgr/cephadm: Don't duplicate cache entries in _create_daemon Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index ac7d8a3c973..e9274236920 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]