From f7a351e7c13afca0c3fa23632bdb787692a09f85 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Wed, 27 May 2020 20:21:40 +0200 Subject: [PATCH] M #-: Retry connection in the vCenter probe --- src/im_mad/remotes/lib/vcenter_cluster.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/im_mad/remotes/lib/vcenter_cluster.rb b/src/im_mad/remotes/lib/vcenter_cluster.rb index 1d1327fc1b..5566781d3c 100644 --- a/src/im_mad/remotes/lib/vcenter_cluster.rb +++ b/src/im_mad/remotes/lib/vcenter_cluster.rb @@ -790,6 +790,9 @@ class ClusterSet def monitor(conf) @mutex.synchronize do @clusters.each do |id, c| + if c[:cluster].nil? + c[:cluster] = Cluster.new(id, @client) rescue nil + end next if c[:cluster].nil? if c[:monitordc].nil?