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:
parent
14633d9515
commit
ddb2d892c2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user