Browse Source

sort memcached servers by node name

grantr 14 năm trước cách đây
mục cha
commit
9ec3840365
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      recipes/rails.rb

+ 1 - 1
recipes/rails.rb

@@ -154,7 +154,7 @@ if app["memcached_role"]
     mode "644"
     variables(
       :memcached_envs => app['memcached'],
-      :hosts => results
+      :hosts => results.sort_by { |r| r.name }
     )
   end
 end