mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(maint) Fix bug where fail_pending_vm was logging an error before any timeouts are reached.
This commit is contained in:
parent
4481cdca1e
commit
8beab7f874
1 changed files with 2 additions and 0 deletions
|
|
@ -129,6 +129,8 @@ module Vmpooler
|
|||
already_timed_out = time_since_clone > timeout
|
||||
timing_out_soon = time_since_clone > timeout_notification && !redis.hget("vmpooler__vm__#{vm}", 'timeout_notification')
|
||||
|
||||
return true if !already_timed_out && !timing_out_soon
|
||||
|
||||
if already_timed_out
|
||||
unless exists
|
||||
remove_nonexistent_vm(vm, pool, redis)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue