From 2fd0a03192bbbe15fb5fb7095f67e1a373661c89 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 20 Jan 2021 01:25:10 +0800 Subject: [PATCH] pybind/mgr/cephadm/module: assure self.ssh_user is not None to appease mypy Signed-off-by: Kefu Chai --- src/pybind/mgr/cephadm/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 063fc0d6731..9f0895ff363 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)) -- 2.39.5