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

(cherry picked from commit 78a69856ee)
This commit is contained in:
Carlos J. Herrera authored and Tino Vazquez committed 2022-02-21 12:16:40 +01:00
1 parent 8d94118f69
commit 0639397eb4
1 file changed
+3 -1
+3 -1
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