mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #571 from jim-minter/uniq-ip-addresses-patch
don't barf if VM has multiple identical IP addresses
This commit is contained in:
commit
a4427a0d31
@ -65,7 +65,7 @@ module VagrantPlugins
|
|||||||
result << data if type == :stdout
|
result << data if type == :stdout
|
||||||
end
|
end
|
||||||
|
|
||||||
ips = result.chomp.split("\n")
|
ips = result.chomp.split("\n").uniq
|
||||||
@logger.info("guest IPs: #{ips.join(', ')}")
|
@logger.info("guest IPs: #{ips.join(', ')}")
|
||||||
ips.each do |ip|
|
ips.each do |ip|
|
||||||
next if ip == ssh_host
|
next if ip == ssh_host
|
||||||
|
Loading…
Reference in New Issue
Block a user