Use pool['running_ttl'], or a default

This commit is contained in:
Scott Schneider 2013-12-04 11:25:46 -08:00
parent 754c27020c
commit 4f23d8bb31

View file

@ -216,7 +216,11 @@ def check_pool pool
$redis.srem('vmware_host_pool__running__'+pool['name'], vm) $redis.srem('vmware_host_pool__running__'+pool['name'], vm)
end 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 end
# READY # READY