Skip to content

Commit

Permalink
Use correct Elasticsearch license based on major version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Williams committed Jul 3, 2020
1 parent c9ce004 commit 5d8f7f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ class { 'elasticsearch':
raise 'No license found!' unless licenses

license = case v[:elasticsearch_major_version]
when 2
licenses[:v2]
else
when 6
licenses[:v5]
else
licenses[:v7]
end
create_remote_file hosts, '/tmp/license.json', license
v[:elasticsearch_license_path] = '/tmp/license.json'
Expand Down

0 comments on commit 5d8f7f6

Please sign in to comment.