Mentions légales du service

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

[accesses] fix generators

  - use author date for accesses_mode_history
  - do not emit retired nodes
parent dd535696
No related branches found
No related tags found
No related merge requests found
Pipeline #997341 passed
......@@ -101,7 +101,7 @@ def generate_nodeset_mode_history
yaml_path = File.join(INPUT_FOLDER, "#{site}.yaml")
next unless File.exist?(yaml_path)
commits = git_repo.log.path(yaml_path).map { |commit| [commit.date, commit.sha] }.sort_by(&:first)
commits = git_repo.log.path(yaml_path).map { |commit| [commit.author.date, commit.sha] }.sort_by(&:first)
process_commits(commits, git_repo, yaml_path, nodeset_history, known_nodeset)
end
......
......@@ -181,7 +181,7 @@ def generate_reference_api
[cluster_uid, {
"uid" => cluster_uid,
"queues" => cluster["queues"],
"nodes" => cluster["nodes"].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| %w[uid nodeset gpu_devices processor architecture].include?(key) }]
end
}]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment