Skip to content

Commit e16cb0e

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 f476c10 commit e16cb0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class VagrantSupportPlugin implements Plugin<Project> {
4545
}
4646
String version = pipe.toString().trim()
4747
if (runResult.exitValue == 0) {
48-
if (version ==~ /Vagrant 1\.(8\.[6-9]|9\.[0-9])+/ || version ==~ /Vagrant 2\.[0-9]\.[0-9]+/) {
48+
if (version ==~ /Vagrant 1\.(8\.[6-9]|9\.[0-9])+/ || version ==~ /Vagrant 2\.[0-9]+\.[0-9]+/) {
4949
return [ 'supported' : true ]
5050
} else {
5151
return [ 'supported' : false,

0 commit comments

Comments
 (0)