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
|
||||
end
|
||||
|
||||
ips = result.chomp.split("\n")
|
||||
ips = ips.uniq
|
||||
ips = result.chomp.split("\n").uniq
|
||||
@logger.info("guest IPs: #{ips.join(', ')}")
|
||||
ips.each do |ip|
|
||||
next if ip == ssh_host
|
||||
|
Loading…
Reference in New Issue
Block a user