Skip to content

Commit

Permalink
Warn if no checksum is provided
Browse files Browse the repository at this point in the history
Emit a warning if someone uses a version of ES for which we don't have a checksum.

Fixes #404.
  • Loading branch information
martinb3 committed Jan 8, 2016
1 parent 5e07995 commit dea0381
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/provider_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def install_package_wrapper_action
checksum = determine_download_checksum(new_resource, node)
package_options = new_resource.package_options

unless checksum
Chef::Log.warn("No checksum was provided for #{download_url}, this may download a new package on every chef run!")
end

remote_file_r = remote_file "#{Chef::Config[:file_cache_path]}/#{filename}" do
source download_url
checksum checksum
Expand Down

0 comments on commit dea0381

Please sign in to comment.