From 68aa9c8acf386cd1926dc432a98ddf21ca4ad0e9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Feb 2013 13:43:06 -0800 Subject: [PATCH] Output the UI when repairing port collisions --- .../action/builtin/handle_forwarded_port_collisions.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb index 1fb1aef24..6a03b6a77 100644 --- a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +++ b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb @@ -89,6 +89,12 @@ module Vagrant args[1] = repaired_port @logger.info("Repaired FP collision: #{host_port} to #{repaired_port}") + + # Notify the user + env[:ui].info(I18n.t("vagrant.actions.vm.forward_ports.fixed_collision", + :host_port => host_port.to_s, + :guest_port => guest_port.to_s, + :new_port => repaired_port.to_s)) end end end