From 0639397eb4fa61899a45407fd098458a0c7095ec Mon Sep 17 00:00:00 2001 From: "Carlos J. Herrera" Date: Mon, 21 Feb 2022 06:12:44 -0500 Subject: [PATCH] B #5689: fix monitoring issue with POWEROFF state (#1795) (cherry picked from commit 78a69856eef4089dcb2798bff87155b618fab817) --- src/im_mad/remotes/lib/vcenter_cluster.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/im_mad/remotes/lib/vcenter_cluster.rb b/src/im_mad/remotes/lib/vcenter_cluster.rb index 4160386d64..9c39a5c0e4 100644 --- a/src/im_mad/remotes/lib/vcenter_cluster.rb +++ b/src/im_mad/remotes/lib/vcenter_cluster.rb @@ -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