]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/cephadm: return -ENOENT if self.ssh_user is None
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2021 16:11:39 +0000 (00:11 +0800)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 29 Jan 2021 12:42:38 +0000 (13:42 +0100)
commite000d22a633e495afee6ddfb461997f708f35305
treea2e59f6909393e6400083e27de1aa9e8d4bcc91d
parent87019086d2ed12ab3359348cd95e6af097b7b692
pybind/mgr/cephadm: return -ENOENT if self.ssh_user is None

there is chance that self.ssh_user is None when handling "cephadm
get-user" command, so return -ENOENT and error messages in that case.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 36dde8861a1b8ae0aa53926c773e21bfa065fb07)
src/pybind/mgr/cephadm/module.py