Use 'find_vm_heavy' to find VMs with mismatched hostnames

This commit is contained in:
Scott Schneider 2014-02-20 14:35:43 -08:00
parent 6eabe156d9
commit 9bee86006d

View file

@ -103,7 +103,8 @@ def check_ready_vm vm, pool, ttl
) )
$redis.hset('vmware_host_pool__vm__'+vm, 'check', Time.now) $redis.hset('vmware_host_pool__vm__'+vm, 'check', Time.now)
host = $vsphere[pool].find_vm(vm) host = $vsphere[pool].find_vm(vm) ||
$vsphere[pool].find_vm_heavy(vm)[vm]
if (host) if (host)
if ( if (