mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix indentation from commit 2525be90
This commit is contained in:
parent
5d2e3099ab
commit
e75ea34b93
@ -40,14 +40,14 @@ module VagrantPlugins
|
||||
# @param [Machine] machine
|
||||
# @return [String]
|
||||
def read_host_ip(ip)
|
||||
UDPSocket.open do |s|
|
||||
if(ip.kind_of?(Array))
|
||||
s.connect(ip.last, 1)
|
||||
else
|
||||
s.connect(ip, 1)
|
||||
UDPSocket.open do |s|
|
||||
if(ip.kind_of?(Array))
|
||||
s.connect(ip.last, 1)
|
||||
else
|
||||
s.connect(ip, 1)
|
||||
end
|
||||
s.addr.last
|
||||
end
|
||||
s.addr.last
|
||||
end
|
||||
end
|
||||
# Returns the IP address of the guest
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user