mgr/cephadm: fix --force remove comment

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2021-03-17 14:42:34 -04:00
parent 48d33f8a1b
commit a40c96d793

View File

@ -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(