mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
simplify as preferred
This commit is contained in:
parent
2fc38f6067
commit
b6fa93e643
@ -65,8 +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
|
||||||
ips = ips.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