add config option 'box_ignore_box_vagrantfile' to ignore the Vagrantfile packaged in the box.

This commit is contained in:
Alex Wu 2017-01-10 13:21:13 +08:00 committed by Brian Cain
parent 282c7341c9
commit 710b8da953
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ module Vagrant
local_keys = keys.dup
# Load the box Vagrantfile, if there is one
if config.vm.box && boxes
if config.vm.box && !config.vm.box_ignore_box_vagrantfile && boxes
box = boxes.find(config.vm.box, box_formats, config.vm.box_version)
if box
box_vagrantfile = find_vagrantfile(box.directory)