Allow vagrantfile_name stub disable via environment variable

This commit is contained in:
Chris Roberts 2018-07-18 10:50:06 -07:00
parent 3e22764ac8
commit 1cd8a4b9be
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ argv.each_index do |i|
# Do not load plugins when performing plugin operations
if arg == "plugin"
if argv.none?{|a| a == "--local" }
if argv.none?{|a| a == "--local" } && !ENV["VAGRANT_LOCAL_PLUGINS_LOAD"]
opts[:vagrantfile_name] = ""
end
ENV['VAGRANT_NO_PLUGINS'] = "1"