Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a1c022d2 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[gen/puppet/kadeploy] use a temporary variable to avoid bug with abacus1/abacus10

parent e990815c
No related branches found
No related tags found
No related merge requests found
Pipeline #875558 failed
......@@ -13,8 +13,9 @@ def cluster_prefix(cluster_list)
loop do
prefix_hash.clone.each { |k, v|
next if v.size == 1
prefix_hash.merge!(v.group_by { |x| x[0, k.length+1] })
r = v.group_by { |x| x[0, k.length+1] }
prefix_hash.delete(k)
prefix_hash.merge!(r)
}
break if prefix_hash.keys.size == cluster_list.size # no prefix duplicates
end
......
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