Skip to content

Commit

Permalink
B #3280: Revert original cluster create semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
tinova committed May 20, 2019
1 parent 14633d9 commit ddb2d89
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/sunstone/models/OpenNebulaJSON/ClusterJSON.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@ def create(template_json)
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)
Expand Down

0 comments on commit ddb2d89

Please sign in to comment.