Skip to content

Commit

Permalink
sort datasource keys for idempotence
Browse files Browse the repository at this point in the history
  • Loading branch information
neoice committed Oct 27, 2014
1 parent 0b779b9 commit 16055dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/config.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function (Settings) {

// datasources, you can add multiple
datasources: {
<%- @datasources.keys.each do |ds_name| -%>
<%- @datasources.keys.sort.each do |ds_name| -%>
<%= "#{ds_name}: {" %>
<%- @datasources[ds_name].keys.sort.each do |ds_attr| -%>
<%- if ds_attr == 'default' or ds_attr == 'grafanaDB' -%>
Expand Down

0 comments on commit 16055dd

Please sign in to comment.