1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: fix minor issue with vCenter monitor (#1804)

(cherry picked from commit bb4fab49fb2f31912ba834afb9fb626275af8116)
This commit is contained in:
Alejandro Huertas Herrero 2022-02-22 19:29:52 +01:00 committed by Tino Vazquez
parent dcae342535
commit 7810538a33
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

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