mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Only one pools.each required...
This commit is contained in:
parent
e8881d601c
commit
4f64355241
1 changed files with 6 additions and 8 deletions
|
|
@ -256,17 +256,15 @@ end
|
|||
|
||||
$logger.log('d', "starting vmware-host-pooler")
|
||||
|
||||
pools.each do |pool|
|
||||
check_pool(pool)
|
||||
end
|
||||
|
||||
|
||||
|
||||
loop do
|
||||
pools.each do |pool|
|
||||
if (! $threads[pool['name']].alive?)
|
||||
$logger.log('d', "[!] [#{pool['name']}] worker thread died, restarting")
|
||||
if (! $threads[pool['name']])
|
||||
check_pool(pool)
|
||||
else
|
||||
if (! $threads[pool['name']].alive?)
|
||||
$logger.log('d', "[!] [#{pool['name']}] worker thread died, restarting")
|
||||
check_pool(pool)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue