When doing box lookup, use explicit provider, machine provider, then default
This commit is contained in:
parent
00b783a6a5
commit
ceb7a0b5ac
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue