diff options
author | Thom May <thom@may.lt> | 2018-05-01 18:11:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-01 18:11:01 +0100 |
commit | 843c0d1528cf4d27558519611792e822732a48b4 (patch) | |
tree | 35d7f3d155646dd62d7623a468a399ca1c224c40 | |
parent | 39ff59de987a11efa8d4c9f803c79343b27c4b4a (diff) | |
parent | bc007801d526ea6883c7dfc534473843acbc9805 (diff) | |
download | chef-843c0d1528cf4d27558519611792e822732a48b4.tar.gz |
Merge pull request #7208 from chef/tm/lazy_is_too_eager
Don't always request lazy files
-rw-r--r-- | lib/chef/cookbook/remote_file_vendor.rb | 2 |
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 3f73c1cca6..7db0cb8686 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.trace("Storing updated #{cache_filename} in the cache.") |