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,8 +24,10 @@ module Vagrant
end
end
env[:ui].info I18n.t("vagrant.actions.vm.forward_ports.forwarding")
forward_ports
if @env[:forwarded_ports].any?
env[:ui].info I18n.t("vagrant.actions.vm.forward_ports.forwarding")
forward_ports
end
end
def forward_ports