summaryrefslogtreecommitdiff
path: root/lib/chef/policy_builder
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-07-23 13:14:09 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-07-26 17:00:35 -0700
commitb17dbb9a6613c4371df73dc558ae1251cd34e52d (patch)
tree59466cfb42326474097b27fd3f8ba9145f61a756 /lib/chef/policy_builder
parentcf6ac3eb9b8b6de37972bb4fd07a03c57cdf33ea (diff)
downloadchef-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.rb3
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