[kbn-es] Fixes ES snapshot path for OSS builds (#17860)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2018-04-24 15:42:49 -07:00 committed by GitHub
parent fe4609647d
commit 5cb9cd7d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,9 +97,9 @@ function downloadFile(url, dest, log) {
}
function getFilename(license, version) {
const basename = `elasticsearch${
license === 'oss' ? '-oss-' : '-'
}${version}`;
if (license === 'oss') {
return `elasticsearch-oss/elasticsearch-oss-${version}-SNAPSHOT.tar.gz`;
}
return `${basename}-SNAPSHOT.tar.gz`;
return `elasticsearch-${version}-SNAPSHOT.tar.gz`;
}