diff --git a/lib/vagrant/action/builtin/handle_box_url.rb b/lib/vagrant/action/builtin/handle_box_url.rb index 5dbbf65fa..6bf552104 100644 --- a/lib/vagrant/action/builtin/handle_box_url.rb +++ b/lib/vagrant/action/builtin/handle_box_url.rb @@ -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