]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephfs-shell: set exit code when Cmd2ArgparseError is caught
authorRishabh Dave <ridave@redhat.com>
Thu, 19 May 2022 12:37:39 +0000 (18:07 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 19 May 2022 12:37:39 +0000 (18:07 +0530)
commitc7306b7df6928ea19d7dabfdd9796f09fb80ec16
tree1ee97d64637bfa9fd2bdd6a6e438cb680b0574b7
parent4a7401b11590565446139459cb9372e138feac41
cephfs-shell: set exit code when Cmd2ArgparseError is caught

Not doing so, sets the exit code to zero which is not desired in case of
a command failure.

Fixes: https://tracker.ceph.com/issues/55710
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/tools/cephfs/cephfs-shell