X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3b5a6405d3dd3483fa8d77fa4924138c6287d10b..ee06d3543d865a3a1085a33aeef3d7d5af38046c:/cookbooks/dev/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 39f99f6c7..b96f9291e 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -105,7 +105,7 @@ end search(:accounts, "*:*").each do |account| name = account["id"] - details = node[:accounts][:users][name] + details = node[:accounts][:users][name] || {} if ["user","administrator"].include?(details[:status]) user_home = details[:home] || account["home"] || "#{node[:accounts][:home]}/#{name.to_s}"