pybind/mgr/cephadm/module: assure self.ssh_user is not None

to appease mypy

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-01-20 01:25:10 +08:00
parent cb3a50cd36
commit 2fd0a03192

View File

@ -1092,6 +1092,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule,
return conn, r
else:
self._reset_con(host)
assert self.ssh_user
n = self.ssh_user + '@' + host
self.log.debug("Opening connection to {} with ssh options '{}'".format(
n, self._ssh_options))