Fixup the exit code - the old CLI tried to differentiate between CLI
errors and action errors by returning EXIT_FAILURE in the former case.
Also remove a test that relied on a special case check in the old CLI.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
rbd: unmap failed: (22) Invalid argument
[22]
-Either --image or arg:
-
- $ sudo rbd unmap --image foobar barbaz
- rbd: extraneous parameter barbaz
- [1]
+Need an arg:
$ sudo rbd unmap
rbd: unmap requires either image name or device path
- [1]
+ [22]
Two images