Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 35ba600a authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

Revert "[refrepo][oarproperties] Do not try to do an addition if next_id is 'NO'"

parent c2280fed
No related branches found
No related tags found
No related merge requests found
Pipeline #846839 passed with warnings
......@@ -1204,7 +1204,6 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
phys_rsc_map.each do |physical_resource, variables|
# if it's a new cluster, or the cluster doesn't have resource ids for this kind of resources
if is_a_new_cluster or cluster_resources.map{|r| r[physical_resource]}.select{|x| not x.nil?}.empty?
next if next_rsc_ids[physical_resource] == 'NO'
variables[:current_ids] = [*next_rsc_ids[physical_resource]+1..next_rsc_ids[physical_resource]+variables[:per_cluster_count]]
next_rsc_ids[physical_resource] = variables[:per_server_count] > 0 ? variables[:current_ids].max : next_rsc_ids[physical_resource]
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment