Ensure the vagrantfile_name option is stubbed when using plugin commands

This commit is contained in:
Chris Roberts 2018-07-13 16:57:24 -07:00
parent 2ac0b0c3a9
commit 9321f3cb6c
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ argv.each_index do |i|
# Do not load plugins when performing plugin operations # Do not load plugins when performing plugin operations
if arg == "plugin" if arg == "plugin"
opts[:vagrantfile_name] = ""
ENV['VAGRANT_NO_PLUGINS'] = "1" ENV['VAGRANT_NO_PLUGINS'] = "1"
# Only initialize plugins when listing installed plugins # Only initialize plugins when listing installed plugins
if argv[i+1] != "list" if argv[i+1] != "list"