mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix "Object#timeout is deprecated" ruby 2.3 warning
This commit is contained in:
parent
7e8dcb241b
commit
32b9e675c0
@ -77,7 +77,7 @@ module VagrantPlugins
|
|||||||
|
|
||||||
# Check if we can open a connection to the host
|
# Check if we can open a connection to the host
|
||||||
def ping(host, timeout = 3)
|
def ping(host, timeout = 3)
|
||||||
timeout(timeout) do
|
::Timeout.timeout(timeout) do
|
||||||
s = TCPSocket.new(host, 'echo')
|
s = TCPSocket.new(host, 'echo')
|
||||||
s.close
|
s.close
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user