mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Merge pull request #131 from puppetlabs/maint_wait_pending
(maint) Move VM Only When SSH Check Succeeds
This commit is contained in:
commit
c5d0850dd1
1 changed files with 1 additions and 2 deletions
|
|
@ -35,11 +35,10 @@ module Vmpooler
|
||||||
Timeout.timeout(5) do
|
Timeout.timeout(5) do
|
||||||
TCPSocket.new vm, 22
|
TCPSocket.new vm, 22
|
||||||
end
|
end
|
||||||
|
move_pending_vm_to_ready(vm, pool, host)
|
||||||
rescue
|
rescue
|
||||||
fail_pending_vm(vm, pool, timeout)
|
fail_pending_vm(vm, pool, timeout)
|
||||||
end
|
end
|
||||||
|
|
||||||
move_pending_vm_to_ready(vm, pool, host)
|
|
||||||
else
|
else
|
||||||
fail_pending_vm(vm, pool, timeout)
|
fail_pending_vm(vm, pool, timeout)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue