mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Syntax (spacing)
This commit is contained in:
parent
ba56310415
commit
bdee20cf21
2 changed files with 17 additions and 13 deletions
|
|
@ -54,8 +54,12 @@ loop do
|
||||||
total = total+1
|
total = total+1
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check pending pool
|
# Check 'pending' pool
|
||||||
$redis.smembers('vmware_host_pool__pending__'+pool['name']).each do |vm|
|
$redis.smembers('vmware_host_pool__pending__'+pool['name']).each do |vm|
|
||||||
|
if ! inventory[vm]
|
||||||
|
$redis.srem('vmware_host_pool__pending__'+pool['name'], vm)
|
||||||
|
end
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(vsphere_helper.find_vms(vm)[vm]) and
|
(vsphere_helper.find_vms(vm)[vm]) and
|
||||||
(vsphere_helper.find_vms(vm)[vm].summary.guest.toolsRunningStatus == 'guestToolsRunning') and
|
(vsphere_helper.find_vms(vm)[vm].summary.guest.toolsRunningStatus == 'guestToolsRunning') and
|
||||||
|
|
@ -74,7 +78,7 @@ loop do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check ready pool
|
# Check 'ready' pool
|
||||||
$redis.smembers('vmware_host_pool__ready__'+pool['name']).each do |vm|
|
$redis.smembers('vmware_host_pool__ready__'+pool['name']).each do |vm|
|
||||||
if ! inventory[vm]
|
if ! inventory[vm]
|
||||||
$redis.srem('vmware_host_pool__ready__'+pool['name'], vm)
|
$redis.srem('vmware_host_pool__ready__'+pool['name'], vm)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue