cta-admin exit code inconsistencies
Summary
When running cta-admin
to get a specific resource and the resource does not exists the exit code should be 2
but it is not the case for storage_class
and tape
.
Steps to reproduce
What is the current bug behaviour?
[idlarbi@tpsrv020 /]$ cta-admin sc ls -n dummy_sc ; echo $?
columnString failed: This result set is invalid
1
[idlarbi@tpsrv020 /]$ cta-admin --json ta ls -v dummy_tape; echo $?
[]0
What is the expected correct behaviour?
[idlarbi@tpsrv020 /]$ cta-admin re ls -v dummy_tape ; echo $?
No repack request for this VID.
2
[idlarbi@tpsrv020 /]$ cta-admin dr ls dummy_drive ; echo $?
Drive dummy_drive not found.
2