Closed crawley closed 10 years ago
this is by design in chef https://tickets.opscode.com/browse/CHEF-3319
If you can find the docs for how to detect chef whyrun mode, I'll throw in the code to give a more friendly error message.
If you want to run in why mode anyways, ensure that treetop is installed into chef's embedded ruby parts before you run chef-solo. (ssh into your server and /opt/chef/embedded/bin/gem install treetop
I think)
I think you should just be able to check the config hash; i.e.
Chef::Config[:solo]
is set to true when chef-solo starts. Mobile: 0427 027 304
Sorry ... not enough coffee.
Try Chef::Config[:why_run]
beautiful. thanks, @crawley
@crawley mind testing my branch, (#50)
When I try to run a recipe that depends on chef-solo-search on an omnibus Chef 11.8.0 install using "chef-solo ... -W", I get the following error. When I remove the "-W", it works.