mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
handle_box_url uses new formats
This commit is contained in:
parent
f3bbad8c2e
commit
25895b5099
1 changed files with 3 additions and 5 deletions
|
|
@ -45,11 +45,9 @@ module Vagrant
|
|||
|
||||
formats = env[:machine].provider_options[:box_format] ||
|
||||
env[:machine].provider_name
|
||||
[formats].flatten.each do |format|
|
||||
if env[:box_collection].find(box_name, format)
|
||||
has_box = true
|
||||
break
|
||||
end
|
||||
if env[:box_collection].find(box_name, formats)
|
||||
has_box = true
|
||||
break
|
||||
end
|
||||
|
||||
if !has_box
|
||||
|
|
|
|||
Loading…
Reference in a new issue