only first private_network is used

this will prevent using last private_network for the hostname
This commit is contained in:
Andrew Yongjoon Kong 2014-01-16 17:18:49 +09:00
parent dd924d00a4
commit 2498e053f9
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ module VagrantPlugins
machine.config.vm.networks.each do |network|
key, options = network[0], network[1]
ip = options[:ip] if key == :private_network
next if ip
break if ip
end
end
ip || (machine.ssh_info ? machine.ssh_info[:host] : nil)