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)