-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
salt exit codes #18510
Comments
Thanks for bringing this up, I believe the behavior you are seeing is the expected behavior. The command |
hey, sorry. i would expect a different behavior, like if my test goes wrong, the return code should be 1 (http://tldp.org/LDP/abs/html/exitcodes.html) regardless if my salt command runs successfully. salt <minion> file.file_exists /some/file/that/doesn't/exists ; echo $?
False
0
salt <minion> file.file_exists /some/file/that/exists ; echo $?
True
0 |
My reason for thinking a return of A further consultation of the applicable standards as you have suggested is needed. I believe there is an issue somewhere about generally refactoring return statuses/return codes. I can't find it at the moment, but that ought to be referenced here. |
Here it is: #7013. |
This is the plan for unifying and standardizing salt exit codes.
@thatch45, @cachedout, @basepi, or @UtahDave may have further commentary on this issue. |
+1 |
1 similar comment
+1 |
Wait, what is the current status of retcodes for salt operations? It's been 4 years since the issue was created... |
Exit codes have been normalized in #48361 for the upcoming Fluorine release. The following conditions will set a nonzero exit code:
|
I'm a bit confused about the status - I've just picked up salt |
I think this is expected, as far as I know. To get status code from operation executed by salt-call you have to use |
@oliver-dungey As explained above, the retcode changes are in the Fluorine release (2019.2.0). |
@saltstack/team-core Since Fluorine was released, this can be closed. |
Using salt version below, the issue with the incorrect exit code is still present when you add --batch-size and --batch-wait parameters
Even though there is an error:
salt exit status is 0.
|
Please open a new issue. Commenting on a closed issue doesn't do much good. |
is there a reason why test.* returns False and exits with bash exit code 0 instead of 1 ?
The text was updated successfully, but these errors were encountered: