]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/recipes/default.rb
Remove trailing whitespace in ruby code
[chef.git] / cookbooks / dev / recipes / default.rb
index d660718e6ca35910dd94e0a58e2feae0576b8d98..1290e11f9bc31eeb1e7f8eaf238b0a74fe20c6f9 100644 (file)
@@ -106,7 +106,7 @@ search(:accounts, "*:*").each do |account|
   port = 7000 + account["uid"].to_i
 
   if ["user","administrator"].include?(details[:status])
-    user_home = details[:home] || account["home"] || "#{node[:accounts][:home]}/#{name.to_s}"
+    user_home = details[:home] || account["home"] || "#{node[:accounts][:home]}/#{name}"
 
     if File.directory?("#{user_home}/public_html")
       template "/etc/php5/fpm/pool.d/#{name}.conf" do
@@ -220,7 +220,7 @@ if node[:postgresql][:clusters][:"9.1/main"]
     template "apache.apis.erb"
   end
 
-  node[:postgresql][:clusters].each do |name,details|
+  node[:postgresql][:clusters].each_key do |name|
     postgresql_munin name do
       cluster name
       database "ALL"