Skip to content

Commit c41407d

Browse files
committed
Allow multiple digits in Vagrant 2.x minor versions
This commit allows the minor version in Vagrant 2.x versions to have two digits when we perform the Vagrant version check.
1 parent d579ce6 commit c41407d

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 && (version ==~ /Vagrant 2\.[0-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)