handle_box_url uses new formats

This commit is contained in:
Mitchell Hashimoto 2013-07-18 22:30:19 -04:00
parent f3bbad8c2e
commit 25895b5099
1 changed files with 3 additions and 5 deletions

View File

@ -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