Mentions légales du service

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

[gen/access] generate the data the correct way around...

parent e2bc7926
No related branches found
No related tags found
No related merge requests found
Pipeline #970647 passed with warnings
......@@ -209,8 +209,11 @@ def generate_access_level(options)
end
unspecified_nodesets = all_nodesets - nodesets.keys
abort "Some nodeset are not configure: #{unspecified_nodesets.join(', ')}" unless unspecified_nodesets.empty?
nodesets.each_with_object({}) do |(nodeset, prio), acc|
acc[nodeset] = create_access(prio, nodeset)
nodesets.each_with_object({}) do |(nodeset, prio_input), acc|
create_access(prio_input, nodeset).each do |gga, prio|
acc[gga] = {} unless acc.key?(gga)
acc[gga][nodeset] = prio
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment