Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 7c45923d authored by Philippe Virouleau's avatar Philippe Virouleau
Browse files

[resources-explorer] Add more missing field

parent bd39c0d7
No related branches found
No related tags found
1 merge request!738Add missing fields to the global json for resources-explorer
......@@ -172,7 +172,7 @@ def generate_reference_api
)
node_keys = %w[uid nodeset gpu_devices processor architecture storage_devices memory_devices]
node_keys = %w[uid nodeset gpu_devices processor architecture storage_devices memory_devices network_adapters performance]
# Generate the all-in-one json with just enough information for resources-explorer.
all_in_one_hash = {
"sites" => global_hash["sites"].to_h do |site_uid, site|
......@@ -182,6 +182,9 @@ def generate_reference_api
[cluster_uid, {
"uid" => cluster_uid,
"queues" => cluster["queues"],
"created_at" => cluster["created_at"],
"manufactured_at" => cluster["manufactured_at"],
"model" => cluster["model"],
"nodes" => cluster["nodes"].select { |_, n| n["status"] != "retired" }.to_h do |node_uid, node|
[node_uid, node.select { |key| node_keys.include?(key) }]
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment