mgr/ssh: fix remove_mds exception

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-11-04 08:02:01 -06:00
parent a78ece253d
commit e019f5fe58

View File

@ -958,7 +958,7 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator):
results.append(self._worker_pool.apply_async(
self._remove_mds, (d.service_instance, d.nodename)))
if not results:
raise RuntimeError('Unable to find mds.%s[-*] daemon(s)' % name)
raise OrchestratorError('Unable to find mds.%s[-*] daemon(s)' % name)
return SSHWriteCompletion(results)
def _remove_mds(self, mds_id, host):