summaryrefslogtreecommitdiff
path: root/lib/chef/runner.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-10-02 15:09:54 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-10-02 15:09:54 -0700
commit0c90f07b180b18592c89c053401cf87816cbcb77 (patch)
tree39f89825fefb3db9a64dc1bf96801c2cd424ce0f /lib/chef/runner.rb
parent28a6ace0566b93a538effa9ddb61e1bc20031534 (diff)
downloadchef-0c90f07b180b18592c89c053401cf87816cbcb77.tar.gz
build_provider no runs load_current_resource
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r--lib/chef/runner.rb3
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}")