Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 0ee80721 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 0543731e
No related branches found
No related tags found
No related merge requests found
Pipeline #997339 passed
...@@ -101,7 +101,7 @@ def generate_nodeset_mode_history ...@@ -101,7 +101,7 @@ def generate_nodeset_mode_history
yaml_path = File.join(INPUT_FOLDER, "#{site}.yaml") yaml_path = File.join(INPUT_FOLDER, "#{site}.yaml")
next unless File.exist?(yaml_path) 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) process_commits(commits, git_repo, yaml_path, nodeset_history, known_nodeset)
end end
......
...@@ -181,7 +181,7 @@ def generate_reference_api ...@@ -181,7 +181,7 @@ def generate_reference_api
[cluster_uid, { [cluster_uid, {
"uid" => cluster_uid, "uid" => cluster_uid,
"queues" => cluster["queues"], "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) }] [node_uid, node.select { |key| %w[uid nodeset gpu_devices processor architecture].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