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
b0105a1509
commit
ba3831bffb
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")
|
$logger.log('d', "[!] [#{pool}] '#{vm}' reached end of TTL after #{ttl} minutes")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
$redis.srem('vmware_host_pool__ready__'+pool, vm)
|
||||||
|
|
||||||
|
$logger.log('s', "[!] [#{pool}] '#{vm}' not found in vCenter inventory")
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue