-
Notifications
You must be signed in to change notification settings - Fork 6
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
Retcode not properly forwarded through Skipped services #34
Comments
Service could only have one status, which is skipped in this case. We cannot put DEP_ERROR and SKIPPED here as a status. So we lose the DEP_ERROR info at this step. The error is not propagated and so return code is 0... Code change is not trivial |
Reproduced without SKIPPED services:
We should have 6 instead of 0 here... |
@cedeyn thanks for the report. I think the problem is different. This is not the same issue as above and will probably require a different fix. Could you confirm the behavior if you add a |
Here it is :
Same behaviour:
|
Hi,
Here's a bug report about an incorrect return code when a requirement of a skipped service fails.
Cheers,
Romain F.
Configuration file
Expected behavior
milkcheck -n node2000 entry_point status
should return 0milkcheck -n node2000 status
should return 0milkcheck -n node2001 entry_point status
should return 6milkcheck -n node2001 status
should return 6Current behavior
milkcheck -n node2000 entry_point status
returns 0milkcheck -n node2000 status
should returns 0milkcheck -n node2001 entry_point status
returns 0Debug output
milkcheck -n node2001 status
return 0Debug output
Details
The text was updated successfully, but these errors were encountered: