Rename 'check_vm' function to 'check_pending_vm'

This commit is contained in:
Scott Schneider 2013-11-13 13:45:50 -08:00
parent 3239ea29bd
commit 0a0177e226

View file

@ -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