Make dependency provisioners experimental

This commit is contained in:
Brian Cain 2019-08-28 15:09:38 -07:00
parent 963319d938
commit c192651e90
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ require "vagrant/action/builtin/mixin_synced_folders"
require "vagrant/config/v2/util"
require "vagrant/util/platform"
require "vagrant/util/presence"
require "vagrant/util/experimental"
require File.expand_path("../vm_provisioner", __FILE__)
require File.expand_path("../vm_subvm", __FILE__)
@ -338,7 +339,11 @@ module VagrantPlugins
after = options.delete(:after)
end
prov = VagrantConfigProvisioner.new(name, type.to_sym, before, after)
if Vagrant::Util::Experimental.feature_enabled?("dependency_provisioners")
prov = VagrantConfigProvisioner.new(name, type.to_sym, before, after)
else
prov = VagrantConfigProvisioner.new(name, type.to_sym)
end
@provisioners << prov
end