When doing box lookup, use explicit provider, machine provider, then default

This commit is contained in:
Chris Roberts 2018-08-02 16:41:28 -07:00
parent 00b783a6a5
commit ceb7a0b5ac
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ module VagrantPlugins
if !machine.box
collection = Vagrant::BoxCollection.new(@env.boxes_path)
machine.box = collection.find(machine.config.vm.box, provider || @env.default_provider, "> 0")
machine.box = collection.find(machine.config.vm.box, provider || machine.provider_name || @env.default_provider, "> 0")
if !machine.box
machine.ui.output(I18n.t(
"vagrant.errors.box_update_no_box",