mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 21:16:39 +09:00
B #3280: Revert original cluster create semantics
(cherry picked from commit ddb2d892c2)
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user