diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-10-08 00:07:36 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-10-08 00:07:36 -0700 |
commit | 3d14601aea23dee3899d097324875274da419d84 (patch) | |
tree | 1e3b11fee0b4af392e2e8cfc42db79b67da528ce /lib/chef/runner.rb | |
parent | 3d79ccb1fd363c0cd8d7cc41a5637dd3c6ce62e0 (diff) | |
download | chef-3d14601aea23dee3899d097324875274da419d84.tar.gz |
We need to build_provider for every action - it might change, and we need to do load_current_resources every time, or miss state changes in single statements
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r-- | lib/chef/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb index 6a59f3d33e..b943ef5ec4 100644 --- a/lib/chef/runner.rb +++ b/lib/chef/runner.rb @@ -61,9 +61,9 @@ class Chef @collection.each do |resource| begin Chef::Log.debug("Processing #{resource}") - provider = build_provider(resource) action_list = resource.action.kind_of?(Array) ? resource.action : [ resource.action ] action_list.each do |ra| + provider = build_provider(resource) provider.send("action_#{ra}") if resource.updated resource.actions.each_key do |action| |