Do not display port forwarding message in case no forwarded ports where set

This commit is contained in:
Fabio Rehm 2013-04-18 23:02:07 -03:00
parent 454edec6bb
commit 5679158ea1

View file

@ -24,9 +24,11 @@ module Vagrant
end end
end end
if @env[:forwarded_ports].any?
env[:ui].info I18n.t("vagrant.actions.vm.forward_ports.forwarding") env[:ui].info I18n.t("vagrant.actions.vm.forward_ports.forwarding")
forward_ports forward_ports
end end
end
def forward_ports def forward_ports
@container_ip = @env[:machine].provider.driver.assigned_ip @container_ip = @env[:machine].provider.driver.assigned_ip