Allow vagrantfile_name stub disable via environment variable
This commit is contained in:
parent
3e22764ac8
commit
1cd8a4b9be
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue