mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Allow for a globally-configurable 'pending' timeout
This commit is contained in:
parent
54a77a49d0
commit
b54d42aea4
2 changed files with 13 additions and 1 deletions
|
|
@ -336,7 +336,13 @@ module Vmpooler
|
|||
|
||||
# PENDING
|
||||
$redis.smembers('vmpooler__pending__'+pool['name']).each do |vm|
|
||||
pool['timeout'] ||= 15
|
||||
unless (pool['timeout'])
|
||||
if ($config[:config]['timeout'])
|
||||
pool['timeout'] = $config[:config]['timeout']
|
||||
else
|
||||
pool['timeout'] = 15
|
||||
end
|
||||
end
|
||||
|
||||
if (inventory[vm])
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue