From 5e0a7d946ecf80bfd53b9b8d805d2c3fe8de6380 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 25 Aug 2010 22:23:36 -0700 Subject: [PATCH] Child environment UIs match the parent --- lib/vagrant/environment.rb | 1 + lib/vagrant/ui.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index fb8c1c11f..a4541bc51 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -138,6 +138,7 @@ module Vagrant # Returns the {UI} for the environment, which is responsible # for talking with the outside world. def ui + return parent.ui if parent @ui ||= UI.new(self) end diff --git a/lib/vagrant/ui.rb b/lib/vagrant/ui.rb index c6f78f32f..bf8e56358 100644 --- a/lib/vagrant/ui.rb +++ b/lib/vagrant/ui.rb @@ -35,7 +35,7 @@ module Vagrant def report_progress(progress, total, show_parts=true) percent = (progress.to_f / total.to_f) * 100 line = "Progress: #{percent.to_i}%" - line << " (#{data[:progress]} / #{data[:total]})" if data[:show_parts] + line << " (#{progress} / #{total})" if show_parts line = "#{line_reset}#{line}" @shell.say(line, nil, false)