chef / cheffish

Resources and tools for testing and interacting with Chef and Chef Server.
Apache License 2.0
38 stars 28 forks source link

fixing undefined local variable or method block in honor_local_mode #28

Closed mwrock closed 10 years ago

mwrock commented 10 years ago

After updating to the latest cheffish, we are receiving the following error from our kitchen driver that uses honor_local_mode:

[Execute platform_win:kitchen:middle-tier-windows-2012R2] Kitchen::ActionFailed: Failed to complete #create action: [undefined local variable or method `block' for Cheffish:Module]

Stacktrace:
/home/teamcity/.chefdk/gem/ruby/2.1.0/gems/cheffish-0.8.3/lib/cheffish.rb:69:in `honor_local_mode'
/home/teamcity/.chefdk/gem/ruby/2.1.0/gems/clc-chef-metal-vsphere-0.3.56/lib/kitchen/driver/vsphere.rb:55:in `with_metal_driver'

Adding &block to the parameter list to fix.

jkeiser commented 10 years ago

Rebased and merged, thanks!