mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Use pool['running_ttl'], or a default
This commit is contained in:
parent
754c27020c
commit
4f23d8bb31
1 changed files with 5 additions and 1 deletions
|
|
@ -216,7 +216,11 @@ def check_pool pool
|
|||
$redis.srem('vmware_host_pool__running__'+pool['name'], vm)
|
||||
end
|
||||
|
||||
check_running_vm(vm, pool['name'], config[:config]['ttl'])
|
||||
if (pool['running_ttl'])
|
||||
check_running_vm(vm, pool['name'], pool['running_ttl'])
|
||||
else
|
||||
check_running_vm(vm, pool['name'], '720')
|
||||
end
|
||||
end
|
||||
|
||||
# READY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue