summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-05-02 15:29:12 +0100
committerGitHub <noreply@github.com>2018-05-02 15:29:12 +0100
commit6830e42842613437bd306da8fcfea714e62ca2df (patch)
treedd4e6bd38ea3cabb9ad42851f78399d8c6ea812a
parenta7fe493097aa9db7fef8da1eaf02681f165e7b9c (diff)
parentf3ff010f363d9be4d871098f890341c2e58a56ac (diff)
downloadchef-6830e42842613437bd306da8fcfea714e62ca2df.tar.gz
Merge pull request #7216 from chef/tm/backport-7208
Don't always request lazy files
-rw-r--r--lib/chef/cookbook/remote_file_vendor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/remote_file_vendor.rb b/lib/chef/cookbook/remote_file_vendor.rb
index 668d74c9ce..cfd7789311 100644
--- a/lib/chef/cookbook/remote_file_vendor.rb
+++ b/lib/chef/cookbook/remote_file_vendor.rb
@@ -62,7 +62,7 @@ class Chef
# If the checksums are different between on-disk (current) and on-server
# (remote, per manifest), do the update. This will also execute if there
# is no current checksum.
- if found_manifest_record[:lazy] || current_checksum != found_manifest_record["checksum"]
+ if current_checksum != found_manifest_record["checksum"]
raw_file = @rest.streaming_request(found_manifest_record[:url])
Chef::Log.debug("Storing updated #{cache_filename} in the cache.")