Skip to content

Commit f1e8b99

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 18fa40e commit f1e8b99

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])+/) {
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)