diff --git a/src/im_mad/remotes/lib/vcenter_cluster.rb b/src/im_mad/remotes/lib/vcenter_cluster.rb index bc4565f52b..a516d815ba 100644 --- a/src/im_mad/remotes/lib/vcenter_cluster.rb +++ b/src/im_mad/remotes/lib/vcenter_cluster.rb @@ -751,6 +751,8 @@ class ClusterSet # Add a host by id, it access OpenNebula to get connection parameters def add(hid, conf) + return if @mutex.synchronize { @clusters.key?(hid) } + begin cluster = Cluster.new(hid, @client) error = ''