[chef] RE: knife return codes?


Chronological Thread 
  • From: Nico Kadel-Garcia < >
  • To: " " < >
  • Subject: [chef] RE: knife return codes?
  • Date: Thu, 30 Apr 2015 18:29:29 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US

‘0’ is the standard UNIX and Linux exit code for a successful command. I spend a great deal of time with tools and systems that do *not* report errors, and continue blithely on their way.

 

 

From: Fouts, Chris [mailto:
Sent: Thursday, April 30, 2015 2:31 PM
To:
Subject: [chef] knife return codes?

 

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




Archive powered by MHonArc 2.6.16.

§