only first private_network is used
this will prevent using last private_network for the hostname
This commit is contained in:
parent
dd924d00a4
commit
2498e053f9
|
@ -104,7 +104,7 @@ module VagrantPlugins
|
||||||
machine.config.vm.networks.each do |network|
|
machine.config.vm.networks.each do |network|
|
||||||
key, options = network[0], network[1]
|
key, options = network[0], network[1]
|
||||||
ip = options[:ip] if key == :private_network
|
ip = options[:ip] if key == :private_network
|
||||||
next if ip
|
break if ip
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ip || (machine.ssh_info ? machine.ssh_info[:host] : nil)
|
ip || (machine.ssh_info ? machine.ssh_info[:host] : nil)
|
||||||
|
|
Loading…
Reference in New Issue