Do not display port forwarding message in case no forwarded ports where set
This commit is contained in:
parent
454edec6bb
commit
5679158ea1
1 changed files with 4 additions and 2 deletions
|
@ -24,8 +24,10 @@ module Vagrant
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
env[:ui].info I18n.t("vagrant.actions.vm.forward_ports.forwarding")
|
if @env[:forwarded_ports].any?
|
||||||
forward_ports
|
env[:ui].info I18n.t("vagrant.actions.vm.forward_ports.forwarding")
|
||||||
|
forward_ports
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def forward_ports
|
def forward_ports
|
||||||
|
|
Loading…
Reference in a new issue