diff options
author | Thom May <thom@may.lt> | 2018-05-02 15:29:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 15:29:12 +0100 |
commit | 6830e42842613437bd306da8fcfea714e62ca2df (patch) | |
tree | dd4e6bd38ea3cabb9ad42851f78399d8c6ea812a | |
parent | a7fe493097aa9db7fef8da1eaf02681f165e7b9c (diff) | |
parent | f3ff010f363d9be4d871098f890341c2e58a56ac (diff) | |
download | chef-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.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 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.") |