Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'oc rollout status' will return exit code 0 even though the command status does not exist #11043

Closed
tnozicka opened this issue Sep 21, 2016 · 2 comments

Comments

@tnozicka
Copy link
Contributor

oc rollout status returns bad exit code 0 even though there is no command status there. This is a big issue for scripts...

Version
$ oc version
oc v1.4.0-alpha.0+8974c3c-dirty
kubernetes v1.4.0-beta.3+d19513f
features: Basic-Auth

Server https://192.168.42.42:8443
openshift v1.4.0-alpha.0+c452daf
kubernetes v1.4.0-beta.3+d19513f
Steps To Reproduce
  1. oc rollout status
  2. oc rollout xxxxxxxxxxxwhateverxxxxxxxxxxx
Current Result

exit code 0

Expected Result

non zero exit code

@0xmichalis
Copy link
Contributor

This is a problem with all nested commands @openshift/cli-review

@juanvallejo
Copy link
Contributor

rollout status sub-command was added here: #9874, but @Kargakis is right, will fix this for non-existent commands

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

No branches or pull requests

6 participants