Skip to content

Commit

Permalink
[sys] Since we are not supporting Chef 0.8, just remove that test for…
Browse files Browse the repository at this point in the history
… just 0.9.
  • Loading branch information
douglaswth committed Feb 28, 2012
1 parent f2d02c5 commit e29ab18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/helper.rb
Expand Up @@ -48,11 +48,7 @@ def self.run_template(target_file, source, cookbook, variables, enable, command,
resrc.backup false
#resrc.notifies notify_action, notify_resources

if (Chef::VERSION =~ /0\.9/) # provider signature changed in Chef 0.9
provider = Chef::Provider::Template.new(resrc, run_context)
else
provider = Chef::Provider::Template.new(node, resrc)
end
provider = Chef::Provider::Template.new(resrc, run_context)
provider.load_current_resource

if enable
Expand Down

0 comments on commit e29ab18

Please sign in to comment.