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:
parent
2c36183a21
commit
0c08d316d7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user