Skip to content

Commit

Permalink
Order nodes when searching (issue #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinfomicien committed Nov 24, 2014
1 parent 22f4060 commit 107db73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/galera.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
:node, \
"mariadb_galera_cluster_name:#{node['mariadb']['galera']['cluster_name']}"
)
# Sort Nodes by fqdn
galera_cluster_nodes.sort!{|x, y| x[:fqdn] <=> y[:fqdn]}
end

first = true
Expand Down

0 comments on commit 107db73

Please sign in to comment.