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

(cherry picked from commit bb4fab49fb)
This commit is contained in:
Alejandro Huertas Herrero authored and Tino Vazquez committed 2022-02-22 19:32:12 +01:00
1 parent dcae342535
commit 7810538a33
1 file changed
+2 -1
@@ -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