diff --git a/src/vmm_mad/remotes/vcenter/vcenter_driver.rb b/src/vmm_mad/remotes/vcenter/vcenter_driver.rb index d409a3a738..0b228dd202 100644 --- a/src/vmm_mad/remotes/vcenter/vcenter_driver.rb +++ b/src/vmm_mad/remotes/vcenter/vcenter_driver.rb @@ -120,7 +120,7 @@ class VIClient def find_vm_template(uuid) vms = @dc.vmFolder.childEntity.grep(RbVmomi::VIM::VirtualMachine) - return vms.find{ |v| v.config.uuid == uuid } + return vms.find{ |v| v.config && v.config.uuid == uuid } end ########################################################################