From 47e078133d546c68be471592f5431e02354c3102 Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Wed, 29 Apr 2020 17:34:37 -0600 Subject: [PATCH] mgr/orch: use `service_type` as the `daemon_type` $ ceph orch add -i mon.yaml Error ENOENT: unknown daemon type `None` Signed-off-by: Michael Fritch --- src/pybind/mgr/orchestrator/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 24398b891f1..3140de83c7a 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -654,6 +654,8 @@ Usage: spec = ServiceSpec(daemon_type, placement=placement) + daemon_type = spec.service_type + if daemon_type == 'mon': completion = self.add_mon(spec) elif daemon_type == 'mgr': -- 2.39.5