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