From 7f64cfac8fc05261014c9f94112d0149594a3c2e Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Mon, 6 Jul 2020 12:20:12 +0200 Subject: [PATCH] B #4965: Reuse existing vCenter connection to test connectivity (cherry picked from commit e4eaeb83d0e5236001ecbfda3b10291fe2077ae0) --- src/im_mad/remotes/lib/vcenter_cluster.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/im_mad/remotes/lib/vcenter_cluster.rb b/src/im_mad/remotes/lib/vcenter_cluster.rb index 387b64df7d..85a44b09c9 100644 --- a/src/im_mad/remotes/lib/vcenter_cluster.rb +++ b/src/im_mad/remotes/lib/vcenter_cluster.rb @@ -147,8 +147,7 @@ class Cluster # Try connectivity to a vCenter instance and close the connection def beacon_host - vi_client = VCenterDriver::VIClient.new(connection, @host.id) - vi_client.close_connection + @vic.vim.serviceContent.about.instanceUuid Time.now.to_s end