- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: knife return codes?
- Date: Thu, 30 Apr 2015 11:45:38 -0700
On Thursday, April 30, 2015 at 11:31 AM, Fouts, Chris wrote:
>
I see (in my Jenkins console for example) that when knife fails I get a
>
return code 1. Can I assume that if knife passes that it returns a 0? If
>
no, what’s the best way to check for a pass/fail knife condition without
>
parsing the output?
>
>
Chris
Correct, knife should always return non-zero for failure. I suppose there are
ways that it could not, like if a plugin was written incorrectly, but that
would be considered a bug. I’m not aware of any such bugs for core knife
functionality.
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.