Skip to content

Commit 5d8f7f6

Browse files
author
Gavin Williams
committed
Use correct Elasticsearch license based on major version
1 parent c9ce004 commit 5d8f7f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/spec_helper_acceptance.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ class { 'elasticsearch':
119119
raise 'No license found!' unless licenses
120120

121121
license = case v[:elasticsearch_major_version]
122-
when 2
123-
licenses[:v2]
124-
else
122+
when 6
125123
licenses[:v5]
124+
else
125+
licenses[:v7]
126126
end
127127
create_remote_file hosts, '/tmp/license.json', license
128128
v[:elasticsearch_license_path] = '/tmp/license.json'

0 commit comments

Comments
 (0)