Description of problem: When I try to destroy a domain with command 'rhc domain destroy' and the domain dosn't exist, the command reports error however the return code is 0. $ rhc domain destroy -n NONEXISTING $U Problem reported from server. Response code was 400. Re-run with -d for more information. RESULT: Cannot alter or remove namespace NONEXISTING. Namspace does not exist. $ echo $? 0 Version-Release number of selected component (if applicable): rhc-0.87.7-1.el6_2.noarch How reproducible: Always Steps to Reproduce: 1. rhc domain destroy -n NONEXISTING 2. echo $? Actual results: Error is reported, but the return code is 0 Expected results: Return code must be different than 0 Additional info:
This has now been fixed.
tested on stage and devenv_1652 still returns 0. -------------------------------- [root@localhost ~]# rhc domain destroy -n aaaaaaa Password: Problem reported from server. Response code was 400. Re-run with -d for more information. RESULT: Cannot alter or remove namespace aaaaaaa. Namspace does not exist. [root@localhost ~]# echo $? 0
(In reply to comment #2) > tested on stage and devenv_1652 > still returns 0. > > -------------------------------- > > [root@localhost ~]# rhc domain destroy -n aaaaaaa > Password: > Problem reported from server. Response code was 400. > Re-run with -d for more information. > > RESULT: > Cannot alter or remove namespace aaaaaaa. Namspace does not exist. > > [root@localhost ~]# echo $? > 0 correction: it returns 1 on devenv_1652, still returns 0 on stage.
verified on devenv_1652 it returns 1 now.