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

B #5689: fix monitoring issue with POWEROFF state (#1795)

(cherry picked from commit 78a69856eef4089dcb2798bff87155b618fab817)
This commit is contained in:
Carlos J. Herrera 2022-02-21 06:12:44 -05:00 committed by Tino Vazquez
parent 8d94118f69
commit 0639397eb4
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -201,6 +201,8 @@ class Cluster
# Retrieve all known VM states from vCenter
def vcenter_vms_state
vc_uuid = @vic.vim.serviceContent.about.instanceUuid
view = @vic.vim
.serviceContent
.viewManager
@ -244,7 +246,7 @@ class Cluster
result.each do |r|
next unless r.obj.is_a?(RbVmomi::VIM::VirtualMachine)
vms_hash[r.obj._ref] = r.to_hash
vms_hash[r.obj._ref + '_' + vc_uuid] = r.to_hash
end
view.DestroyView