We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 022a41c + db0fbb9 commit 2b857ceCopy full SHA for 2b857ce
lib/refrepo/gen/puppet/kavlanngg5k.rb
@@ -47,11 +47,12 @@ def gen_json(output_path)
47
end
48
# consistent order
49
site_data_hierarchy['sites'] = site_data_hierarchy['sites'].sort_by { |site_id, _site_h| site_id }.to_h
50
- site_data_hierarchy['sites'].each { |_site_id, site_h|
+ site_data_hierarchy['sites'].each { |site_id, site_h|
51
site_h['clusters'] = site_h['clusters'].sort_by { |cluster_id, _cluster_h| cluster_id }.to_h
52
site_h['clusters'].each { |_cluster_id, cluster_h|
53
cluster_h['nodes'] = cluster_h['nodes'].sort_by { |node_id, _node_h| node_id[/(\d+)/].to_i }.to_h
54
}
55
+ site_data_hierarchy['sites'][site_id] = site_h.sort_by { |key| key}.to_h
56
57
58
output_file = File.new(output_path, 'w')
0 commit comments