]> git-server-git.apps.pok.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)
committerSage Weil <sage@redhat.com>
Thu, 26 Mar 2020 01:56:35 +0000 (20:56 -0500)
the `nfs` service was incorrectly reported as `mds`

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit d9f04ec1d73948e915dda0f51592306542314238)

src/pybind/mgr/orchestrator/_interface.py

index 329f0a1bc1cdc423365d0f00c49a040f1012f41f..2eada033a5d11d64ac93c6e00a9702e4b69707bc 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):