]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/cephadm: return -ENOENT if self.ssh_user is None 38935/head
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2021 16:11:39 +0000 (00:11 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Jan 2021 10:02:24 +0000 (18:02 +0800)
commit36dde8861a1b8ae0aa53926c773e21bfa065fb07
tree9c673ecee83a7fdf33182b314d6f38e88ce93fbd
parent34e96c55397da7029254864ebf7a3d88563e22c9
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>
src/pybind/mgr/cephadm/module.py