Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit dd160fca 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
No related merge requests found
...@@ -172,7 +172,7 @@ def generate_reference_api ...@@ -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. # Generate the all-in-one json with just enough information for resources-explorer.
all_in_one_hash = { all_in_one_hash = {
"sites" => global_hash["sites"].to_h do |site_uid, site| "sites" => global_hash["sites"].to_h do |site_uid, site|
...@@ -182,6 +182,8 @@ def generate_reference_api ...@@ -182,6 +182,8 @@ def generate_reference_api
[cluster_uid, { [cluster_uid, {
"uid" => cluster_uid, "uid" => cluster_uid,
"queues" => cluster["queues"], "queues" => cluster["queues"],
"created_at" => cluster["created_at"],
"manufactured_at" => cluster["manufactured_at"],
"nodes" => cluster["nodes"].select { |_, n| n["status"] != "retired" }.to_h do |node_uid, node| "nodes" => cluster["nodes"].select { |_, n| n["status"] != "retired" }.to_h do |node_uid, node|
[node_uid, node.select { |key| node_keys.include?(key) }] [node_uid, node.select { |key| node_keys.include?(key) }]
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment