B #3280: Revert original cluster create semantics

(cherry picked from commit ddb2d892c2)
This commit is contained in:
Tino Vazquez committed 2019-05-20 18:26:58 +02:00
1 parent 78bd769356
commit 2dbb9cb89d
1 file changed
+1 -12
@@ -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)