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

puppi does not differentiate between ERROR and WARNING regarding exit-codes #59

Open
k9ert opened this issue Mar 26, 2013 · 2 comments
Open

Comments

@k9ert
Copy link
Contributor

k9ert commented Mar 26, 2013

It seems that puppi returns 0 for OK and 1 for WARNING AND ERROR.

Didn't thought about that sideeffect at this commit:
https://github.com/hybris/puppi/commit/a6aeb58172be2575ca58c88720a7d8a98fb1a129

However, wouldn't it be a good idea that puppi returns 2 for ERROR? That would be the "nagios-convention" and would solve my issue that i have now: The autorun returns as successfull but is error because of my above change.

Any thoughts?

@alvagante
Copy link
Member

Well true, that would be better.
Generally during a deploy warnings are due to puppi checks failing, so you could, as workaround, disable puppi checks in a deploy (with run_checks => false in the puppi::project::* define)

@alvagante
Copy link
Member

(incidentally this would require a revert of that commit)

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

No branches or pull requests

2 participants