]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: prevent traceback when invalid osd id passed to 'orch osd rm stop' 39924/head
authorDaniel Pivonka <dpivonka@redhat.com>
Mon, 8 Mar 2021 19:04:29 +0000 (14:04 -0500)
committerDaniel Pivonka <dpivonka@redhat.com>
Mon, 8 Mar 2021 19:04:29 +0000 (14:04 -0500)
commit6e8adcfee6ef8996badac3167007b6c76e33a2e4
treefd5dd9a01664aabe550759ad77e3691b28b7d39d
parent6fd9365917f339321324047751eb970306f1dda9
mgr/cephadm: prevent traceback when invalid osd id passed to 'orch osd rm stop'

orch osd rm exepcts a str that can be converted to an int passed to it
if the user passed something that cant be converted it shows a traceback
catching the ValueError prevents this traceback.

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
src/pybind/mgr/cephadm/module.py