From: Sage Weil Date: Wed, 17 Mar 2021 18:42:34 +0000 (-0400) Subject: mgr/cephadm: fix --force remove comment X-Git-Tag: v17.1.0~2562^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a40c96d793fb22df8f17a4463c5ef5a9e5fa818f;p=ceph.git mgr/cephadm: fix --force remove comment Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index 4543d872b996..c442f3092a42 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -642,8 +642,6 @@ class CephadmServe: daemons_to_remove.pop() for d in daemons_to_remove: r = True - # NOTE: we are passing the 'force' flag here, which means - # we can delete a mon instances data. assert d.hostname is not None self._remove_daemon(d.name(), d.hostname) @@ -919,6 +917,8 @@ class CephadmServe: self.mgr.cephadm_services[daemon_type_to_service(daemon_type)].pre_remove(daemon) + # NOTE: we are passing the 'force' flag here, which means + # we can delete a mon instances data. args = ['--name', name, '--force'] self.log.info('Removing daemon %s from %s' % (name, host)) out, err, code = self._run_cephadm(