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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue