Deprecation: Old Exit Codes (CHEF-2)

[edit on GitHub]

In older versions of Chef, it was not possible to discern why a chef run exited simply by examining the error code. This makes it very tricky for tools such as Test Kitchen to reason about the status of a Chef client run. Starting in Chef 12.11, there are now well defined exit codes that the Chef client can use to communicate the status of the run.

This deprecation was added in Chef 12.11. In Chef 13, only the extended set of exit codes will be supported. For further information on the list of defined error codes, please see RFC 62, which defines them.


If you have built automation that is dependent on the old behavior of Chef, we strongly recommend updating it to support the extended set of exit codes. However, it’s still possible to enable the old behavior. Add the setting

exit_status :disabled

to the Chef config file.