diff options
author | Thom May <thom@chef.io> | 2018-04-30 12:25:08 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-04-30 12:25:08 +0100 |
commit | bc007801d526ea6883c7dfc534473843acbc9805 (patch) | |
tree | 968dd6f4a9a315b69502839e9b20c7fe57aa3209 | |
parent | 0a102728d4d9bda79a073c4ed8519297cfff7d52 (diff) | |
download | chef-tm/lazy_is_too_eager.tar.gz |
Don't always request lazy filestm/lazy_is_too_eager
Signed-off-by: Thom May <thom@chef.io>
-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.") |