From 1cd8a4b9bec586e001cb51f2717e0fc7c7d8fb2e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 18 Jul 2018 10:50:06 -0700 Subject: [PATCH] Allow vagrantfile_name stub disable via environment variable --- bin/vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vagrant b/bin/vagrant index ad4ffa7b5..7372a726d 100755 --- a/bin/vagrant +++ b/bin/vagrant @@ -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"