Merge pull request #64 from sstrato/patch-1
only first private_network is used
This commit is contained in:
commit
93fd353135
|
@ -88,7 +88,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