mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Test TCP connection before moving VMs from 'pending' to 'ready'
This commit is contained in:
parent
dcde1baadd
commit
291152b5b9
1 changed files with 4 additions and 0 deletions
|
|
@ -48,6 +48,10 @@ module Vmpooler
|
|||
)
|
||||
begin
|
||||
Socket.getaddrinfo(vm, nil)
|
||||
|
||||
Timeout::timeout(5) {
|
||||
TCPSocket.new vm, 22
|
||||
}
|
||||
rescue
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue