diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-10-02 15:09:54 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-10-02 15:09:54 -0700 |
commit | 0c90f07b180b18592c89c053401cf87816cbcb77 (patch) | |
tree | 39f89825fefb3db9a64dc1bf96801c2cd424ce0f /lib/chef/runner.rb | |
parent | 28a6ace0566b93a538effa9ddb61e1bc20031534 (diff) | |
download | chef-0c90f07b180b18592c89c053401cf87816cbcb77.tar.gz |
build_provider no runs load_current_resource
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r-- | lib/chef/runner.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb index cde844f027..6a59f3d33e 100644 --- a/lib/chef/runner.rb +++ b/lib/chef/runner.rb @@ -49,6 +49,8 @@ class Chef end Chef::Log.debug("#{resource} using #{provider_klass.to_s}") provider = provider_klass.new(@node, resource) + provider.load_current_resource + provider end def converge @@ -60,7 +62,6 @@ class Chef begin Chef::Log.debug("Processing #{resource}") provider = build_provider(resource) - provider.load_current_resource action_list = resource.action.kind_of?(Array) ? resource.action : [ resource.action ] action_list.each do |ra| provider.send("action_#{ra}") |