mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Remove VMs not found in vCenter inventory from 'ready' queues
This commit is contained in:
parent
5823f099c1
commit
ed22ed6e08
1 changed files with 4 additions and 0 deletions
|
|
@ -97,6 +97,10 @@ def check_ready_vm vm, pool, ttl
|
|||
$logger.log('d', "[!] [#{pool}] '#{vm}' reached end of TTL after #{ttl} minutes")
|
||||
end
|
||||
end
|
||||
else
|
||||
$redis.srem('vmware_host_pool__ready__'+pool, vm)
|
||||
|
||||
$logger.log('s', "[!] [#{pool}] '#{vm}' not found in vCenter inventory")
|
||||
end
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue