1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #3280: Revert original cluster create semantics

This commit is contained in:
Tino Vazquez 2019-05-20 18:26:01 +02:00
parent 14633d9515
commit ddb2d892c2
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -26,18 +26,7 @@ module OpenNebulaJSON
return cluster_hash
end
# Check if cluster exists
cluster_pool = OpenNebula::ClusterPool.new(@client)
cluster_pool.info
cluster_pool.each do |cluster|
if cluster.name == cluster_hash['name']
# Use existing cluster
@pe_id = cluster.id
else
# Create cluster
self.allocate(cluster_hash['name'])
end
end
self.allocate(cluster_hash['name'])
end
def perform_action(template_json)