Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2e03f3de authored by Pierre Neyron's avatar Pierre Neyron :bicyclist:
Browse files

[gen:oar-properties] add sanity check on the cluster names

parent 6cbdff6c
No related branches found
No related tags found
No related merge requests found
Pipeline #161105 passed
...@@ -1218,6 +1218,11 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s ...@@ -1218,6 +1218,11 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
cpu_idx = 0 cpu_idx = 0
core_idx = 0 core_idx = 0
unless data_hierarchy['sites'][site_name]['clusters'].include?(cluster_name)
puts("It seems that the cluster \"#{cluster_name}\" does not exist in the API. The generator will abort.")
raise 'Sanity check failed'
end
cluster_desc_from_data_files = data_hierarchy['sites'][site_name]['clusters'][cluster_name] cluster_desc_from_data_files = data_hierarchy['sites'][site_name]['clusters'][cluster_name]
cluster_nodes = cluster_desc_from_data_files['nodes'] cluster_nodes = cluster_desc_from_data_files['nodes']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment