Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Undefined method "locate_config_file" with chef 12 / chefdk 0.3.5 #25
Upon upgrading from chefdk 0.2.0 to 0.3.5, knife block broke down emitting:
Exception: NoMethodError: undefined method `locate_config_file' for Chef::Knife:Class
The 0.3.5 version of:
does indeed have changes to locate_config_file from the comparable 0.2.0 which no doubt has implicatations for knife-block's own get_config_file / locate_config_file logic.
There were a few intervening releases from 0.2.0 to 0.3.5 that I did not use.
Chefdk 0.3.5 has no problems with the knife-block gem removed and knife-block works fine when installed with 0.2.0.
To workaround the problem, I donwgraded to 0.2.0 for now.
I'm encountering this when Chef 12 is installed via rubygems
You can reproduce with:
I suspect it's the version matching in https://github.com/greenandsecure/knife-block/blob/master/lib/chef/knife/block.rb#L13-L21 but I'm too much of a ruby n00b to know how to test a fix, off-hand