[kbn-es] Updates location of ES OSS snapshot (#18938)

ES snapshots are located again within the base elasticsearch directory and NOT within an additionally nested elasticsearch-oss directory

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2018-05-09 09:29:15 -07:00 committed by Tyler Smalley
parent c9cb8108e4
commit bc388bfc52

View file

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