Skip to content

Commit d579ce6

Browse files
risdenkjasontedor
authored andcommitted
Support Vagrant 2.x
This commit adds support for Vagrant 2.x by allowing these versions to pass the Vagrant version check. Relates #26563
1 parent fbecfd8 commit d579ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class VagrantTestPlugin implements Plugin<Project> {
236236
standardOutput = new ByteArrayOutputStream()
237237
doLast {
238238
String version = standardOutput.toString().trim()
239-
if ((version ==~ /Vagrant 1\.(8\.[6-9]|9\.[0-9])+/) == false) {
239+
if ((version ==~ /Vagrant 1\.(8\.[6-9]|9\.[0-9])+/) == false && (version ==~ /Vagrant 2\.[0-9]\.[0-9]+/) == false) {
240240
throw new InvalidUserDataException("Illegal version of vagrant [${version}]. Need [Vagrant 1.8.6+]")
241241
}
242242
}

0 commit comments

Comments
 (0)