Skip to content

mgr/cephadm: prevent traceback when invalid osd id passed to 'orch osd rm stop' - #39924

Merged
sebastian-philipp merged 1 commit into
ceph:masterfrom
Daniel-Pivonka:osdrmstoptraceback
Mar 10, 2021
Merged

sebastian-philipp merged 1 commit into
ceph:masterfrom
Daniel-Pivonka:osdrmstoptraceback

Conversation

@Daniel-Pivonka

Copy link
Copy Markdown

orch osd rm expects 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.

Fixes: https://tracker.ceph.com/issues/49659
Signed-off-by: Daniel Pivonka [email protected]

…d 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 <[email protected]>
@Daniel-Pivonka
Daniel-Pivonka requested a review from a team as a code owner March 8, 2021 19:10
@sebastian-philipp

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants