diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-23 13:14:09 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-26 17:00:35 -0700 |
commit | b17dbb9a6613c4371df73dc558ae1251cd34e52d (patch) | |
tree | 59466cfb42326474097b27fd3f8ba9145f61a756 /lib/chef/policy_builder | |
parent | cf6ac3eb9b8b6de37972bb4fd07a03c57cdf33ea (diff) | |
download | chef-b17dbb9a6613c4371df73dc558ae1251cd34e52d.tar.gz |
CHEF-3684: do not clear file cache on override run list
Diffstat (limited to 'lib/chef/policy_builder')
-rw-r--r-- | lib/chef/policy_builder/expand_node_object.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/policy_builder/expand_node_object.rb b/lib/chef/policy_builder/expand_node_object.rb index 161e14ca38..63964a2a0d 100644 --- a/lib/chef/policy_builder/expand_node_object.rb +++ b/lib/chef/policy_builder/expand_node_object.rb @@ -176,6 +176,9 @@ class Chef end synchronizer = Chef::CookbookSynchronizer.new(cookbook_hash, events) + if temporary_policy? + synchronizer.remove_obsoleted_files = false + end synchronizer.sync_cookbooks # register the file cache path in the cookbook path so that CookbookLoader actually picks up the synced cookbooks |