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>
(cherry picked from commit
6e8adcfee6ef8996badac3167007b6c76e33a2e4)
try:
self.to_remove_osds.rm(OSD(osd_id=int(osd_id),
remove_util=self.to_remove_osds.rm_util))
- except (NotFoundError, KeyError):
+ except (NotFoundError, KeyError, ValueError):
return f'Unable to find OSD in the queue: {osd_id}'
# trigger the serve loop to halt the removal