Mentions légales du service

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

[dev/refapi-subset] Only keep software/standard-environment, not software/*

parent 2ad0508e
No related branches found
No related tags found
No related merge requests found
Pipeline #141968 passed
...@@ -23,6 +23,7 @@ def gen_json(site, output_path) ...@@ -23,6 +23,7 @@ def gen_json(site, output_path)
cluster_hash.delete_if { |key| key != 'nodes' } cluster_hash.delete_if { |key| key != 'nodes' }
cluster_hash['nodes'].to_h.each do |node_uid, node_hash| cluster_hash['nodes'].to_h.each do |node_uid, node_hash|
node_hash.delete_if { |key| key != 'software' } node_hash.delete_if { |key| key != 'software' }
node_hash['software'].delete_if { |key| key != 'standard-environment' }
end 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+)/].to_i }.to_h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment