Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b7f8e106 authored by POUILLOUX Laurent's avatar POUILLOUX Laurent
Browse files

[gen/puppet/refapi-subset] fix nodes sort due to igrida cluster containing integers

parent ce739200
No related branches found
No related tags found
1 merge request!567add roazhon5 in rennes site
......@@ -26,7 +26,7 @@ def gen_json(site, output_path)
node_hash['software'].delete_if { |key| key != 'standard-environment' }
end
cluster_hash['nodes'] = cluster_hash['nodes'].sort_by{|node_uid, _node_hash| node_uid[/(\d+)/].to_i }.to_h
cluster_hash['nodes'] = cluster_hash['nodes'].sort_by{|node_uid, _node_hash| node_uid[/-(\d+)/, 1].to_i }.to_h
end
site_data_hierarchy['sites'][site]['clusters'] = site_data_hierarchy['sites'][site].fetch('clusters', {}).sort_by{ |cluster_uid, _cluster_hash| cluster_uid }.to_h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment