From: Kefu Chai Date: Tue, 19 Jan 2021 17:25:10 +0000 (+0800) Subject: pybind/mgr/cephadm/module: assure self.ssh_user is not None X-Git-Tag: v16.2.0~230^2~18 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=87800f937cabe0947aa62d58dee205602ce8ac83;p=ceph.git pybind/mgr/cephadm/module: assure self.ssh_user is not None to appease mypy Signed-off-by: Kefu Chai (cherry picked from commit 2fd0a03192bbbe15fb5fb7095f67e1a373661c89) --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 063fc0d673104..9f0895ff363e8 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -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))