X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fc9f955d9561602e9c5e55146fd28e7f71d9d532..3b6c4a7fde47963091251384cbb2749445488cf8:/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}"