diff --git a/src/vmm_mad/remotes/lib/vcenter_driver/host.rb b/src/vmm_mad/remotes/lib/vcenter_driver/host.rb index 4429199223..41656d6e84 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/host.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/host.rb @@ -802,7 +802,8 @@ module VCenterDriver found_vm = host_vms .select do |vm| - vm['DEPLOY_ID'].eql? vm_ref + vm['DEPLOY_ID'] == vm_ref || + vm['DEPLOY_ID'] == VIHelper.get_deploy_id(vm_ref) end.first id = found_vm['ID'] if found_vm