Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install package to work with custom download_checksum #795

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Fix property references in install resource

## 5.1.9 - *2023-10-31*

## 5.1.8 - *2023-10-31*
Expand Down
6 changes: 3 additions & 3 deletions resources/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
elasticsearch_install_package "ElasticSearch #{new_resource.version}" do
version new_resource.version
instance_name new_resource.instance_name
download_url download_url
download_checksum download_checksum
download_url new_resource.download_url
download_checksum new_resource.download_checksum
end
when 'repository'
elasticsearch_install_repository "ElasticSearch #{new_resource.version}" do
Expand All @@ -42,6 +42,6 @@
action :remove
end
else
raise "#{install_type} is not a valid install type"
raise "#{new_resource.type} is not a valid install type"
end
end
4 changes: 2 additions & 2 deletions resources/partial/_package.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
property :download_url,
String,
default: lazy { default_download_url(new_resource.version) }
default: lazy { default_download_url(version) }

property :download_checksum,
String,
default: lazy { default_download_checksum(new_resource.version)[checksum_platform] }
default: lazy { default_download_checksum(version)[checksum_platform] }
Loading