From 25895b50995817a2b4278b03fa7f87d4dcbe2dd2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 18 Jul 2013 22:30:19 -0400 Subject: [PATCH] handle_box_url uses new formats --- lib/vagrant/action/builtin/handle_box_url.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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