Issue Details (XML | Word | Printable)

Key: CHEF-1295
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Daniel DeLeo
Reporter: Daniel DeLeo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Chef

cookbook file for preseed files in package resource needs to have its run context set

Created: 07/Jun/10 10:39 PM   Updated: 07/Jun/10 11:25 PM   Resolved: 07/Jun/10 11:25 PM
Component/s: None
Affects Version/s: 0.9.0
Fix Version/s: 0.9.0

Triage Status: Triaged


 Description  « Hide

When the package provider creates the cookbook file resource for the preseed file, it does not set the run context on the object, so the chef run then fails with:

Cannot find the provider for a resource with no run context set
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/platform.rb:242:in `provider_for_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/resource.rb:258:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/provider/package.rb:129:in `get_preseed_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/provider/package/apt.rb:95:in `preseed_package'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/provider/package.rb:57:in `action_install'


Sort Order: Ascending order - Click to sort in descending order
Daniel DeLeo added a comment - 07/Jun/10 11:25 PM

fixed, now the run_context is set when we create the cookbook file resource


Daniel DeLeo added a comment - 07/Jun/10 11:25 PM

merged/pushed