]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/orch: use `service_type` as the `daemon_type`
authorMichael Fritch <mfritch@suse.com>
Wed, 29 Apr 2020 23:34:37 +0000 (17:34 -0600)
committerMichael Fritch <mfritch@suse.com>
Tue, 5 May 2020 18:54:45 +0000 (12:54 -0600)
$ ceph orch add -i mon.yaml
Error ENOENT: unknown daemon type `None`

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/orchestrator/module.py

index 24398b891f1bf2c530effee81febe20e2596323b..3140de83c7a91210baf86b943f62dc57892dab8f 100644 (file)
@@ -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':