don't barf if VM has multiple identical IP addresses

This commit is contained in:
Jim Minter 2016-03-07 13:57:50 +00:00
parent 0c79eaf6d5
commit 2fc38f6067

View File

@ -66,6 +66,7 @@ module VagrantPlugins
end
ips = result.chomp.split("\n")
ips = ips.uniq
@logger.info("guest IPs: #{ips.join(', ')}")
ips.each do |ip|
next if ip == ssh_host