From f7f36bbba421916b7132d9436b76c03ca4a697f6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 12 Sep 2010 15:41:09 -0600 Subject: [PATCH] Fix the call to boxes#find for `vagrant box` commands --- lib/vagrant/command/box.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/command/box.rb b/lib/vagrant/command/box.rb index b8398483e..04ce2e8af 100644 --- a/lib/vagrant/command/box.rb +++ b/lib/vagrant/command/box.rb @@ -10,14 +10,14 @@ module Vagrant desc "remove NAME", "Remove a box from the system" def remove(name) - b = env.boxes.find(env, name) + b = env.boxes.find(name) raise BoxNotFound.new(:name => name) if !b b.destroy end desc "repackage NAME", "Repackage an installed box into a `.box` file." def repackage(name) - b = env.boxes.find(env, name) + b = env.boxes.find(name) raise BoxNotFound.new(:name => name) if !b b.repackage end