Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 0.9.16
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:
Ubuntu 10.04, Ruby 1.8.7 (2010-01-10 patchlevel 249)
Description
Defining a package resource with the easy_install provider like so
package "some_package" do action :install provider Chef::Provider::Package::EasyInstall end
causes a crash with the following backtrace:
/usr/lib/ruby/1.8/chef/resource.rb:144:in `method_missing': undefined method `module_name' for Chef::Resource::Package (NoMethodError) from /usr/lib/ruby/1.8/chef/provider/package/easy_install.rb:65:in `module_name' from /usr/lib/ruby/1.8/chef/provider/package/easy_install.rb:76:in `load_current_resource' from /usr/lib/ruby/1.8/chef/resource.rb:394:in `run_action' from /usr/lib/ruby/1.8/chef/runner.rb:53:in `run_action' from /usr/lib/ruby/1.8/chef/runner.rb:89:in `converge' from /usr/lib/ruby/1.8/chef/runner.rb:89:in `each' from /usr/lib/ruby/1.8/chef/runner.rb:89:in `converge' from /usr/lib/ruby/1.8/chef/resource_collection.rb:94 ... many more lines
Issue appears to be present in 0.10.0 as well, my package resource looks exactly the same.