mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Thread thread thread
This commit is contained in:
parent
f78c8352d5
commit
d29552eaa6
1 changed files with 22 additions and 20 deletions
|
|
@ -209,6 +209,7 @@ loop do
|
||||||
$redis.srem('vmware_host_pool__ready__'+pool['name'], vm)
|
$redis.srem('vmware_host_pool__ready__'+pool['name'], vm)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Thread.new {
|
||||||
if (
|
if (
|
||||||
(! $vsphere_helper.find_vms(vm)[vm]) or
|
(! $vsphere_helper.find_vms(vm)[vm]) or
|
||||||
($vsphere_helper.find_vms(vm)[vm].summary.guest.toolsRunningStatus != 'guestToolsRunning') or
|
($vsphere_helper.find_vms(vm)[vm].summary.guest.toolsRunningStatus != 'guestToolsRunning') or
|
||||||
|
|
@ -234,6 +235,7 @@ loop do
|
||||||
# Metrics
|
# Metrics
|
||||||
$redis.lpush('vmware_host_pool_metrics__deploy_fail', '1')
|
$redis.lpush('vmware_host_pool_metrics__deploy_fail', '1')
|
||||||
end
|
end
|
||||||
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue