From d06e006d92e31f8d021c815bb13133194ea6a26f Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Mon, 9 Mar 2020 17:21:11 -0600 Subject: [PATCH] mgr/cephadm: fix service name for nfs type the `nfs` service was incorrectly reported as `mds` Signed-off-by: Michael Fritch (cherry picked from commit d9f04ec1d73948e915dda0f51592306542314238) --- src/pybind/mgr/orchestrator/_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 329f0a1bc1c..2eada033a5d 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -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): -- 2.47.3