add config option 'box_ignore_box_vagrantfile' to ignore the Vagrantfile packaged in the box.
This commit is contained in:
parent
282c7341c9
commit
710b8da953
|
@ -191,7 +191,7 @@ module Vagrant
|
||||||
local_keys = keys.dup
|
local_keys = keys.dup
|
||||||
|
|
||||||
# Load the box Vagrantfile, if there is one
|
# 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)
|
box = boxes.find(config.vm.box, box_formats, config.vm.box_version)
|
||||||
if box
|
if box
|
||||||
box_vagrantfile = find_vagrantfile(box.directory)
|
box_vagrantfile = find_vagrantfile(box.directory)
|
||||||
|
|
Loading…
Reference in New Issue