mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Rename 'check_vm' function to 'check_pending_vm'
This commit is contained in:
parent
3239ea29bd
commit
0a0177e226
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ $redis = Redis.new
|
||||||
|
|
||||||
|
|
||||||
# Check the state of a VM
|
# Check the state of a VM
|
||||||
def check_vm vm, pool, timeout
|
def check_pending_vm vm, pool, timeout
|
||||||
Thread.new {
|
Thread.new {
|
||||||
host = $vsphere_helper.find_vms(vm)[vm]
|
host = $vsphere_helper.find_vms(vm)[vm]
|
||||||
|
|
||||||
|
|
@ -198,7 +198,7 @@ pools.each do |pool|
|
||||||
# end
|
# end
|
||||||
pool['timeout'] ||= 10
|
pool['timeout'] ||= 10
|
||||||
|
|
||||||
check_vm(vm, pool['name'], pool['timeout'])
|
check_pending_vm(vm, pool['name'], pool['timeout'])
|
||||||
end
|
end
|
||||||
|
|
||||||
# COMPLETED
|
# COMPLETED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue