]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fix service name for nfs type
authorMichael Fritch <mfritch@suse.com>
Mon, 9 Mar 2020 23:21:11 +0000 (17:21 -0600)
committerMichael Fritch <mfritch@suse.com>
Wed, 25 Mar 2020 22:26:13 +0000 (16:26 -0600)
the `nfs` service was incorrectly reported as `mds`

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

index 4cf48c30857e5960ffec03f6bf5c409761054fae..1adaad628aeb1c035c34a598afb44d1fcd873a81 100644 (file)
@@ -1281,7 +1281,7 @@ class DaemonDescription(object):
             return 'rgw.%s' % s_name
         if self.daemon_type in ['mds', 'nfs']:
             _s_name = self.daemon_id.split('.')[0]
-            return 'mds.%s' % _s_name
+            return '%s.%s' % (self.daemon_type, _s_name)
         return self.daemon_type
 
     def __repr__(self):