core: keep the same UI when handling a box URL

This commit is contained in:
Mitchell Hashimoto 2014-02-11 16:03:25 -08:00
parent 2550a76edb
commit c280af0b9c
1 changed files with 2 additions and 0 deletions

View File

@ -45,9 +45,11 @@ module Vagrant
if box_updated
# Reload the environment and set the VM to be the new loaded VM.
old_machine = env[:machine]
env[:machine] = machine.vagrantfile.machine(
machine.name, machine.provider_name,
machine.env.boxes, machine.data_dir, machine.env)
env[:machine].ui = old_machine.ui
end
@app.call(env)