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 954dd6fafd
commit dc69f13422

View file

@ -103,7 +103,8 @@ def check_ready_vm vm, pool, ttl
)
$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 (