This commit is contained in:
root 2015-09-23 20:37:24 -06:00
parent 5b1c34ecf5
commit 2525be90bf
2 changed files with 10 additions and 12 deletions

View File

@ -1,5 +1,5 @@
{
"provider" : "libvirt",
"format" : "qcow2",
"virtual_size" : 40
"virtual_size" : 16
}

View File

@ -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