1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

F #4302: Close vCenter connection

to avoid running our of sockets

(cherry picked from commit 7357706efe)
This commit is contained in:
Tino Vazquez 2020-06-19 14:11:14 +02:00
parent 2c36183a21
commit 0c08d316d7
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -145,8 +145,10 @@ class Cluster
cluster_monitoring
end
# Try connectivity to a vCenter instance and close the connection
def beacon_host
VCenterDriver::VIClient.new(connection, @host.id)
vi_client = VCenterDriver::VIClient.new(connection, @host.id)
vi_client.close_connection
Time.now.to_s
end