From ccfd321ef98dc5c12b180cc3a26f12d870c0eff5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 4 May 2013 09:51:02 -0700 Subject: [PATCH] Properly convert provider name to symbol when searching for boxes [GH-1691] --- CHANGELOG.md | 2 ++ lib/vagrant/box_collection.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80b54bae6..a4f320aa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ BUG FIXES: carry on checks whether the halt succeeded. [GH-1679] - Handle the case where a roles path for Chef solo isn't properly defined. [GH-1665] + - Finding V1 boxes now works properly again to avoid "box not found" + errors. [GH-1691] ## 1.2.2 (April 23, 2013) diff --git a/lib/vagrant/box_collection.rb b/lib/vagrant/box_collection.rb index 837aa861b..6b30411cf 100644 --- a/lib/vagrant/box_collection.rb +++ b/lib/vagrant/box_collection.rb @@ -234,7 +234,7 @@ module Vagrant # If we're looking for a VirtualBox box, then we check if there is # a V1 box. - if provider == :virtualbox + if provider.to_sym == :virtualbox # Check if a V1 version of this box exists, and if so, raise an # exception notifying the caller that the box exists but needs # to be upgraded. We don't do the upgrade here because it can be