diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index b86a00d6fca..c999c91e32a 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1571,8 +1571,8 @@ Then run the following: self.log.info(f"removing: {d.name()}") if d.daemon_type != 'osd': - self.cephadm_services[str(d.daemon_type)].pre_remove(d) - self.cephadm_services[str(d.daemon_type)].post_remove(d, is_failed_deploy=False) + self.cephadm_services[daemon_type_to_service(str(d.daemon_type))].pre_remove(d) + self.cephadm_services[daemon_type_to_service(str(d.daemon_type))].post_remove(d, is_failed_deploy=False) else: cmd_args = { 'prefix': 'osd purge-actual',