mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-01-08 15:03:06 -06:00
works
This commit is contained in:
parent
5b1c34ecf5
commit
2525be90bf
@ -1,5 +1,5 @@
|
||||
{
|
||||
"provider" : "libvirt",
|
||||
"format" : "qcow2",
|
||||
"virtual_size" : 40
|
||||
"virtual_size" : 16
|
||||
}
|
||||
|
@ -39,18 +39,16 @@ module VagrantPlugins
|
||||
#
|
||||
# @param [Machine] machine
|
||||
# @return [String]
|
||||
def read_host_ip(ip)
|
||||
UDPSocket.open do |s|
|
||||
@logger.info("!!!! ALL IPs #{ip} #{ip.kind_of?(Array)}" )
|
||||
if ip.kind_of?(Array)
|
||||
s.connect(ip[0], 1)
|
||||
else
|
||||
s.connect(ip, 1)
|
||||
end
|
||||
s.addr.last
|
||||
end
|
||||
def read_host_ip(ip)
|
||||
UDPSocket.open do |s|
|
||||
if(ip.kind_of?(Array))
|
||||
s.connect(ip.last, 1)
|
||||
else
|
||||
s.connect(ip, 1)
|
||||
end
|
||||
|
||||
s.addr.last
|
||||
end
|
||||
end
|
||||
# Returns the IP address of the guest
|
||||
#
|
||||
# @param [Machine] machine
|
||||
|
Loading…
Reference in New Issue
Block a user