From e316e10552d2dd58da1d410df1cd633a4dc8a2af Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 24 Jan 2014 09:56:37 -0800 Subject: [PATCH] core: make sure the env has the UI in it for adding boxes --- lib/vagrant/action/builtin/handle_box.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/builtin/handle_box.rb b/lib/vagrant/action/builtin/handle_box.rb index bf13880e0..eab2ed410 100644 --- a/lib/vagrant/action/builtin/handle_box.rb +++ b/lib/vagrant/action/builtin/handle_box.rb @@ -67,14 +67,14 @@ module Vagrant env[:ui].detail("Box Version: #{machine.config.vm.box_version}") begin - env[:action_runner].run(Vagrant::Action.action_box_add, { + env[:action_runner].run(Vagrant::Action.action_box_add, env.merge({ box_url: machine.config.vm.box, box_provider: box_formats, box_version: machine.config.vm.box_version, box_client_cert: box_download_client_cert, box_download_ca_cert: box_download_ca_cert, box_download_insecure: box_download_insecure, - }) + })) rescue Errors::BoxAlreadyExists # Just ignore this, since it means the next part will succeed! # This can happen in a multi-threaded environment.