mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Identify when a cloned VM is being checked for ready for a request that has been deleted
This commit is contained in:
parent
cebb118655
commit
dddbeba4a6
2 changed files with 25 additions and 0 deletions
|
|
@ -139,6 +139,9 @@ module Vmpooler
|
|||
if ondemandrequest_hash['status'] == 'failed'
|
||||
move_vm_queue(pool, vm, 'pending', 'completed', redis, "moved to completed queue. '#{request_id}' could not be filled in time")
|
||||
return nil
|
||||
elsif ondemandrequest_hash['status'] == 'deleted'
|
||||
move_vm_queue(pool, vm, 'pending', 'completed', redis, "moved to completed queue. '#{request_id}' has been deleted")
|
||||
return nil
|
||||
end
|
||||
pool_alias = redis.hget("vmpooler__vm__#{vm}", 'pool_alias')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue