Skip to content

Commit 93fd353

Browse files
committed
Merge pull request #64 from sstrato/patch-1
only first private_network is used
2 parents 4ba0d56 + 2498e05 commit 93fd353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vagrant-hostmanager/hosts_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_ip_address(machine, resolving_machine)
8888
machine.config.vm.networks.each do |network|
8989
key, options = network[0], network[1]
9090
ip = options[:ip] if key == :private_network
91-
next if ip
91+
break if ip
9292
end
9393
end
9494
ip || (machine.ssh_info ? machine.ssh_info[:host] : nil)

0 commit comments

Comments
 (0)