commands/box/list: doesn't trigger Vagrantfile loading

This commit is contained in:
Mitchell Hashimoto 2014-04-18 20:46:02 -07:00
parent bc9f877c76
commit 8512d57076
2 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,7 @@
IMPROVEMENTS:
- commands/box/list: Doesn't parse Vagrantfile. [GH-3502]
- providers/hyperv: Implement the provision command. [GH-3494]
BUG FIXES:

View File

@ -24,7 +24,9 @@ end
# if we're accessing the plugin interface, we want to NOT load plugins
# for this run, because they can actually interfere with the function
# of the plugin interface.
argv.each do |arg|
argv.each_index do |i|
arg = argv[i]
if !arg.start_with?("-")
if arg == "plugin"
ENV["VAGRANT_NO_PLUGINS"] = "1"
@ -35,6 +37,10 @@ argv.each do |arg|
ENV["VAGRANT_VAGRANTFILE"] = "plugin_command_#{Time.now.to_i}"
end
if arg == "box" && argv[i+1] == "list"
ENV["VAGRANT_VAGRANTFILE"] = "plugin_command_#{Time.now.to_i}"
end
break
end
end