Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2aa2c6f0 authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen] remove unused data/grid5000/accesses/refrepo.json generation

parent 247f94ad
Branches
No related tags found
1 merge request!915[gen] remove unused data/grid5000/accesses/refrepo.json generation
Pipeline #1095208 passed
This diff is collapsed.
......@@ -166,31 +166,4 @@ def generate_reference_api
expand_nodeset_lists
)
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|
[site_uid, {
"uid" => site_uid,
"clusters" => site["clusters"].to_h do |cluster_uid, cluster|
[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
}]
end
}]
end
}
# Write the global json file.
# Writing the file at the root of the repository makes the full refrepo show
# up when GET-ing "/" in g5k-api, which we don't want; arbitrarily put it in accesses.
write_json(Pathname.new(refapi_path).join("accesses", "refrepo.json"), all_in_one_hash)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment