Reputation: 5821
Under some conditions, you want to abort the current recipe during the Chef compile phase? What is the recommended way to accomplish this one?
Upvotes: 2
Views: 1877
Reputation: 5821
The correct way to abort the current recipe during the Chef compile phase is to return.
Note, this will not abort a Chef run. For how to abort a Chef run, see How to Abort/End A Chef Run.
The response from jtimberman to How to Abort/End A Chef Run gives an incredible amount of background on this topic and is highly recommened.
Upvotes: 4